mirror of
https://github.com/status-im/codimd.git
synced 2025-01-27 16:45:01 +00:00
fix: guest note not save
Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
parent
3494922cdb
commit
375de57af6
@ -664,9 +664,9 @@ function operationCallback(socket, operation) {
|
|||||||
return logger.error('operation callback failed: ' + err)
|
return logger.error('operation callback failed: ' + err)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
note.server.isDirty = true
|
|
||||||
note.tempUsers[userId] = Date.now()
|
note.tempUsers[userId] = Date.now()
|
||||||
}
|
}
|
||||||
|
note.server.isDirty = true
|
||||||
// save authorship - use timer here because it's an O(n) complexity algorithm
|
// save authorship - use timer here because it's an O(n) complexity algorithm
|
||||||
setImmediate(function () {
|
setImmediate(function () {
|
||||||
note.authorship = Note.updateAuthorshipByOperation(operation, userId, note.authorship)
|
note.authorship = Note.updateAuthorshipByOperation(operation, userId, note.authorship)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user