summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app.js b/app.js
index 0c66cc27..adb7f81f 100644
--- a/app.js
+++ b/app.js
@@ -487,6 +487,8 @@ models.sequelize.sync().then(function () {
if (err) throw new Error(err);
if (!notes || notes.length <= 0) return startListen();
});
+ } else {
+ throw new Error('server still not ready after db synced');
}
});