Fix doc updating revision not stringify and compress authorship before save
This commit is contained in:
parent
0cbe638eba
commit
bc74c1f0cb
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ module.exports = function (sequelize, DataTypes) {
|
||||||
authorship = Note.updateAuthorshipByOperation(operations[i], null, authorship);
|
authorship = Note.updateAuthorshipByOperation(operations[i], null, authorship);
|
||||||
}
|
}
|
||||||
note.update({
|
note.update({
|
||||||
authorship: authorship
|
authorship: LZString.compressToBase64(JSON.stringify(authorship))
|
||||||
}).then(function (note) {
|
}).then(function (note) {
|
||||||
return callback(null, note.id);
|
return callback(null, note.id);
|
||||||
}).catch(function (err) {
|
}).catch(function (err) {
|
||||||
|
|
Loading…
Reference in a new issue