Skip to content

Commit 16f03af

Browse files
committed
fix: fix insert attachments
1 parent a58de17 commit 16f03af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/backend/src/modules/file/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class FileService {
4747
url,
4848
size,
4949
mime_type: mimeType,
50-
created_at: new Date(),
50+
created_at: new Date().getTime(),
5151
created_by: getCurrentUserId(),
5252
space_id: mustGetCurrentSpaceId(),
5353
name: fileName,

packages/persistence/src/record/record.mutate-visitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class RecordMutateVisitor extends AbstractQBMutationVisitor implements IR
108108
return {
109109
size: value.size,
110110
url: value.url,
111-
created_at: new Date(),
111+
created_at: new Date().getTime(),
112112
created_by: userId,
113113
space_id: spaceId,
114114
id: value.id,

0 commit comments

Comments
 (0)