mirror of
https://github.com/status-im/codimd.git
synced 2025-01-26 20:01:18 +00:00
Fix doc updating revision not stringify and compress authorship before save
This commit is contained in:
parent
0cbe638eba
commit
bc74c1f0cb
@ -142,7 +142,7 @@ module.exports = function (sequelize, DataTypes) {
|
||||
authorship = Note.updateAuthorshipByOperation(operations[i], null, authorship);
|
||||
}
|
||||
note.update({
|
||||
authorship: authorship
|
||||
authorship: LZString.compressToBase64(JSON.stringify(authorship))
|
||||
}).then(function (note) {
|
||||
return callback(null, note.id);
|
||||
}).catch(function (err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user