mirror of
https://github.com/outline/outline.git
synced 2026-05-02 23:49:51 -05:00
13 lines
314 B
TypeScript
13 lines
314 B
TypeScript
import { Attachment } from "@server/models";
|
|
|
|
export default function presentAttachment(attachment: Attachment) {
|
|
return {
|
|
documentId: attachment.documentId,
|
|
contentType: attachment.contentType,
|
|
name: attachment.name,
|
|
id: attachment.id,
|
|
url: attachment.url,
|
|
size: attachment.size,
|
|
};
|
|
}
|