Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
merge: preserve old text when editing a note (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marie authored Nov 2, 2023
2 parents 933c29f + 219c7fa commit 469b464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/NoteEditService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export class NoteEditService implements OnApplicationShutdown {
await this.noteEditRepository.insert({
id: this.idService.gen(),
noteId: oldnote.id,
oldText: update.text ? oldnote.text : undefined,
oldText: oldnote.text || undefined,
newText: update.text || undefined,
cw: update.cw || undefined,
fileIds: undefined,
Expand Down

0 comments on commit 469b464

Please sign in to comment.