From d3b9e8219273f8fee2b45f7798847f68ee1b7b89 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Fri, 6 Oct 2023 18:22:41 +0200 Subject: [PATCH] fix: relation error --- packages/backend/src/core/NoteEditService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/NoteEditService.ts b/packages/backend/src/core/NoteEditService.ts index 3e01dc35d..21eafe057 100644 --- a/packages/backend/src/core/NoteEditService.ts +++ b/packages/backend/src/core/NoteEditService.ts @@ -365,8 +365,8 @@ export class NoteEditService implements OnApplicationShutdown { }); const note = new MiNote({ - id: this.idService.genId(oldnote.createdAt!), - //createdAt: new Date(oldnote.createdAt!), + id: this.idService.genId(new Date(oldnote.createdAt!)), + createdAt: new Date(oldnote.createdAt!), updatedAt: data.updatedAt ? data.updatedAt : new Date(), fileIds: data.files ? data.files.map(file => file.id) : [], replyId: data.reply ? data.reply.id : null,