* feat: Allow data imports larger than the standard attachment size * Use correct preset for data imports * Cleanup of expired attachments * lint
13 lines
304 B
TypeScript
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,
|
|
};
|
|
}
|