mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-07 01:51:36 -04:00
fix: save created revision on realtime note destroy
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
b3eb6e4339
commit
cf02c35b49
4 changed files with 84 additions and 4 deletions
|
@ -44,7 +44,7 @@ export class RealtimeNoteService implements BeforeApplicationShutdown {
|
|||
*/
|
||||
public saveRealtimeNote(realtimeNote: RealtimeNote): void {
|
||||
this.revisionsService
|
||||
.createRevision(
|
||||
.createAndSaveRevision(
|
||||
realtimeNote.getNote(),
|
||||
realtimeNote.getRealtimeDoc().getCurrentContent(),
|
||||
realtimeNote.getRealtimeDoc().encodeStateAsUpdate(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue