mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 21:54:13 +00:00
parent
8375544dea
commit
8bf8a1aef1
@ -237,8 +237,8 @@ module.exports = function (sequelize, DataTypes) {
|
|||||||
// if no revision available
|
// if no revision available
|
||||||
Revision.create({
|
Revision.create({
|
||||||
noteId: note.id,
|
noteId: note.id,
|
||||||
lastContent: note.content,
|
lastContent: note.content ? note.content : '',
|
||||||
length: note.content.length,
|
length: note.content ? note.content.length : 0,
|
||||||
authorship: note.authorship
|
authorship: note.authorship
|
||||||
}).then(function (revision) {
|
}).then(function (revision) {
|
||||||
Revision.finishSaveNoteRevision(note, revision, callback)
|
Revision.finishSaveNoteRevision(note, revision, callback)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user