Skip to content

Commit

Permalink
fix: fix insert attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Aug 17, 2024
1 parent a58de17 commit 16f03af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/backend/src/modules/file/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class FileService {
url,
size,
mime_type: mimeType,
created_at: new Date(),
created_at: new Date().getTime(),
created_by: getCurrentUserId(),
space_id: mustGetCurrentSpaceId(),
name: fileName,
Expand Down
2 changes: 1 addition & 1 deletion packages/persistence/src/record/record.mutate-visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class RecordMutateVisitor extends AbstractQBMutationVisitor implements IR
return {
size: value.size,
url: value.url,
created_at: new Date(),
created_at: new Date().getTime(),
created_by: userId,
space_id: spaceId,
id: value.id,
Expand Down

0 comments on commit 16f03af

Please sign in to comment.