Skip to content

Commit 69125d0

Browse files
committed
fix: guest note not save
1 parent ec700d6 commit 69125d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/realtime/realtime.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -664,9 +664,9 @@ function operationCallback(socket, operation) {
664664
return logger.error('operation callback failed: ' + err)
665665
})
666666
}
667-
note.server.isDirty = true
668667
note.tempUsers[userId] = Date.now()
669668
}
669+
note.server.isDirty = true
670670
// save authorship - use timer here because it's an O(n) complexity algorithm
671671
setImmediate(function () {
672672
note.authorship = Note.updateAuthorshipByOperation(operation, userId, note.authorship)

0 commit comments

Comments
 (0)