summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2017-03-14 17:11:52 +0800
committerWu Cheng-Han2017-03-14 17:11:52 +0800
commitbaf13072c1eedf5bb8ba126059043241d104a99a (patch)
tree738939bbde6240b2d803c727f8ebf3b07c28908f
parent2fa51fb4ba22a636486ab5add21c69e7cc453574 (diff)
Fix update doc from filesystem cause redundant authorship stringify
-rw-r--r--lib/models/note.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/note.js b/lib/models/note.js
index dd5de8a6..f7c25bde 100644
--- a/lib/models/note.js
+++ b/lib/models/note.js
@@ -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) {