Fix update doc from filesystem cause redundant authorship stringify

This commit is contained in:
Wu Cheng-Han 2017-03-14 17:11:52 +08:00
parent 2fa51fb4ba
commit baf13072c1
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ module.exports = function (sequelize, DataTypes) {
authorship = Note.updateAuthorshipByOperation(operations[i], null, authorship)
}
note.update({
authorship: JSON.stringify(authorship)
authorship: authorship
}).then(function (note) {
return callback(null, note.id)
}).catch(function (err) {