summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index 1d3c7a94..339ff6c2 100644
--- a/app.js
+++ b/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();
});
}
});