mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Fix doc updating revision not stringify and compress authorship before save
This commit is contained in:
parent
0cbe638eba
commit
bc74c1f0cb
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ module.exports = function (sequelize, DataTypes) {
|
||||||
authorship = Note.updateAuthorshipByOperation(operations[i], null, authorship);
|
authorship = Note.updateAuthorshipByOperation(operations[i], null, authorship);
|
||||||
}
|
}
|
||||||
note.update({
|
note.update({
|
||||||
authorship: authorship
|
authorship: LZString.compressToBase64(JSON.stringify(authorship))
|
||||||
}).then(function (note) {
|
}).then(function (note) {
|
||||||
return callback(null, note.id);
|
return callback(null, note.id);
|
||||||
}).catch(function (err) {
|
}).catch(function (err) {
|
||||||
|
|
Loading…
Reference in a new issue