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

View file

@ -154,7 +154,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: JSON.stringify(authorship) authorship: authorship
}).then(function (note) { }).then(function (note) {
return callback(null, note.id) return callback(null, note.id)
}).catch(function (err) { }).catch(function (err) {