Fix update doc from filesystem cause redundant authorship stringify
This commit is contained in:
parent
2fa51fb4ba
commit
baf13072c1
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue