From baf13072c1eedf5bb8ba126059043241d104a99a Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Tue, 14 Mar 2017 17:11:52 +0800 Subject: [PATCH] Fix update doc from filesystem cause redundant authorship stringify --- lib/models/note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/note.js b/lib/models/note.js index dd5de8a..f7c25bd 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) {