mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 03:33:58 -05:00
Fix to handle checkAllNotesRevision might return null notes
This commit is contained in:
parent
07673f0726
commit
bd6d69d7a7
1 changed files with 1 additions and 1 deletions
2
app.js
2
app.js
|
@ -512,7 +512,7 @@ process.on('SIGINT', function () {
|
||||||
if (history.isReady() && realtime.isReady()) {
|
if (history.isReady() && realtime.isReady()) {
|
||||||
models.Revision.checkAllNotesRevision(function (err, notes) {
|
models.Revision.checkAllNotesRevision(function (err, notes) {
|
||||||
if (err) throw new Error(err);
|
if (err) throw new Error(err);
|
||||||
if (notes.length <= 0) {
|
if (!notes || notes.length <= 0) {
|
||||||
clearInterval(checkCleanTimer);
|
clearInterval(checkCleanTimer);
|
||||||
return process.exit(0);
|
return process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue