Fix update noteContent only don't incr Usn

https://github.com/leanote/leanote/issues/865
This commit is contained in:
lealife
2019-03-28 14:27:41 +08:00
parent 359c768041
commit 59174b40ff

View File

@ -616,7 +616,7 @@ func (this *NoteService) UpdateNoteContent(updatedUserId, noteId, content, abstr
return false, "conflict", 0
}
afterUsn = userService.IncrUsn(userId)
db.UpdateByIdAndUserIdField(db.Notes, noteId, userId, "Usn", usn)
db.UpdateByIdAndUserIdField(db.Notes, noteId, userId, "Usn", afterUsn)
}
if db.UpdateByIdAndUserIdMap(db.NoteContents, noteId, userId, data) {