Skip to content

Commit bc74c1f

Browse files
committed
Fix doc updating revision not stringify and compress authorship before save
1 parent 0cbe638 commit bc74c1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/models/note.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ module.exports = function (sequelize, DataTypes) {
142142
authorship = Note.updateAuthorshipByOperation(operations[i], null, authorship);
143143
}
144144
note.update({
145-
authorship: authorship
145+
authorship: LZString.compressToBase64(JSON.stringify(authorship))
146146
}).then(function (note) {
147147
return callback(null, note.id);
148148
}).catch(function (err) {

0 commit comments

Comments
 (0)