Update to add revision saving policy
This commit is contained in:
2
app.js
2
app.js
@@ -526,7 +526,7 @@ models.sequelize.sync().then(function () {
|
||||
if (realtime.isReady()) {
|
||||
models.Revision.checkAllNotesRevision(function (err, notes) {
|
||||
if (err) return new Error(err);
|
||||
if (notes.length <= 0) return startListen();
|
||||
if (!notes || notes.length <= 0) return startListen();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user