mirror of
https://github.com/status-im/codimd.git
synced 2025-01-26 22:19:06 +00:00
Fix update doc from filesystem cause redundant authorship stringify
This commit is contained in:
parent
2fa51fb4ba
commit
baf13072c1
@ -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…
x
Reference in New Issue
Block a user