The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix: File Upload (#4806)
Kanav Aroraf8ec40dbfba7
diff --git a/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx b/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsxindex b872acab55e..2d94d15d801 100644--- a/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx+++ b/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx@@ -45,6 +45,7 @@ export const useUploadAttachmentFile = () => {fullPath: attachmentUrl,type: getFileType(file.name),[targetableObjectFieldIdName]: targetableObject.id,+ createdAt: new Date().toISOString(),} as Partial<Attachment>;await createOneAttachment(attachmentToCreate);diff --git a/packages/twenty-front/src/modules/attachments/types/Attachment.ts b/packages/twenty-front/src/modules/attachments/types/Attachment.tsindex 657ce6b480f..563e516d25d 100644--- a/packages/twenty-front/src/modules/attachments/types/Attachment.ts+++ b/packages/twenty-front/src/modules/attachments/types/Attachment.ts@@ -1,6 +1,6 @@export type Attachment = {id: string;- createdAt: Date;+ createdAt: string;updatedAt: Date;deletedAt: Date | null;};