mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 08:53:09 +02:00
fix: relation error
This commit is contained in:
parent
16130fae60
commit
d3b9e82192
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue