ノートの編集履歴を見れるように(新規ノートのみ)

(cherry picked from commit 25763ee679)
This commit is contained in:
GrapeApple0 2023-09-30 14:53:12 +09:00 committed by mattyatea
parent 588d6acfb7
commit e1eee2872d
5 changed files with 58 additions and 2 deletions

View file

@ -324,6 +324,7 @@ export class NoteEntityService implements OnModuleInit {
id: note.id,
createdAt: this.idService.parse(note.id).date.toISOString(),
updatedAt: note.updatedAt ? note.updatedAt.toISOString() : undefined,
noteEditHistory: note.noteEditHistory.length ? note.noteEditHistory : undefined,
userId: note.userId,
user: this.userEntityService.pack(note.user ?? note.userId, me),
text: text,