mirror of
https://github.com/twentyhq/twenty.git
synced 2025-01-07 17:28:47 +03:00
Fixed attachment field type (#4811)
updatedAt and deletedAt field changed to string like createdAt field. On file upload updatedAt field will be given date same as createdAt. Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
parent
2e419091cc
commit
18072d2935
@ -46,6 +46,7 @@ export const useUploadAttachmentFile = () => {
|
||||
type: getFileType(file.name),
|
||||
[targetableObjectFieldIdName]: targetableObject.id,
|
||||
createdAt: new Date().toISOString(),
|
||||
updatedAt: new Date().toISOString(),
|
||||
} as Partial<Attachment>;
|
||||
|
||||
await createOneAttachment(attachmentToCreate);
|
||||
|
@ -1,6 +1,6 @@
|
||||
export type Attachment = {
|
||||
id: string;
|
||||
createdAt: string;
|
||||
updatedAt: Date;
|
||||
deletedAt: Date | null;
|
||||
updatedAt: string;
|
||||
deletedAt: string | null;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user