diff options
author | Wu Cheng-Han | 2016-09-18 16:50:20 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-09-18 16:50:20 +0800 |
commit | 79fd2d13649180c7c67a0bf37b90518f9fa5a5a3 (patch) | |
tree | f259f1fa300f8c9a678b51784f83d7ad13d0d720 /app.js | |
parent | f2347782d82e34f8029cade522952598fed554a9 (diff) |
Update to add revision saving policy
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); }); } }); |