From 9075aa050a101ca6fb979fa6136897214c7bccce Mon Sep 17 00:00:00 2001 From: Marc Seitz Date: Mon, 16 Dec 2024 16:55:49 +0900 Subject: [PATCH] fix: add contenttype and originalFile to agreements --- pages/api/teams/[teamId]/documents/agreement.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/api/teams/[teamId]/documents/agreement.ts b/pages/api/teams/[teamId]/documents/agreement.ts index afad50ce3..f9e015fa4 100644 --- a/pages/api/teams/[teamId]/documents/agreement.ts +++ b/pages/api/teams/[teamId]/documents/agreement.ts @@ -40,6 +40,7 @@ export default async function handle( type: fileType, folderPathName, fileSize, + contentType, } = req.body as { name: string; url: string; @@ -48,6 +49,7 @@ export default async function handle( type?: string; folderPathName?: string; fileSize?: number; + contentType: string; }; try { @@ -77,6 +79,8 @@ export default async function handle( name: name, numPages: numPages, file: fileUrl, + originalFile: fileUrl, + contentType, type: type, storageType, ownerId: (session.user as CustomUser).id, @@ -96,6 +100,8 @@ export default async function handle( file: fileUrl, type: type, storageType, + originalFile: fileUrl, + contentType, numPages: numPages, fileSize: fileSize, isPrimary: true,