Skip to content

Commit

Permalink
Fix doc updating revision not stringify and compress authorship befor…
Browse files Browse the repository at this point in the history
…e save
  • Loading branch information
jackycute committed Oct 10, 2016
1 parent 0cbe638 commit bc74c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/note.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bc74c1f

Please sign in to comment.