Skip to content

Commit baf1307

Browse files
committed
Fix update doc from filesystem cause redundant authorship stringify
1 parent 2fa51fb commit baf1307

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
@@ -154,7 +154,7 @@ module.exports = function (sequelize, DataTypes) {
154154
authorship = Note.updateAuthorshipByOperation(operations[i], null, authorship)
155155
}
156156
note.update({
157-
authorship: JSON.stringify(authorship)
157+
authorship: authorship
158158
}).then(function (note) {
159159
return callback(null, note.id)
160160
}).catch(function (err) {

0 commit comments

Comments
 (0)