Files
outline/server/presenters/attachment.ts
Tom Moor 6e36ffb706 feat: Allow data imports larger than the standard attachment size (#4449)
* feat: Allow data imports larger than the standard attachment size

* Use correct preset for data imports

* Cleanup of expired attachments

* lint
2022-11-20 09:22:57 -08:00

13 lines
304 B
TypeScript

import { Attachment } from "@server/models";
export default function present(attachment: Attachment) {
return {
documentId: attachment.documentId,
contentType: attachment.contentType,
name: attachment.name,
id: attachment.id,
url: attachment.url,
size: attachment.size,
};
}