Skip to content
Snippets Groups Projects
Verified Commit d3b9e821 authored by Mar0xy's avatar Mar0xy
Browse files

fix: relation error

parent 16130fae
No related branches found
No related tags found
Loading
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment