mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-25 20:18:25 +02:00
Issue #122: If watch file exists at startup, kick off task/schedule
This commit is contained in:
parent
8ead65c1ff
commit
0bef268276
2 changed files with 17 additions and 0 deletions
|
@ -1669,6 +1669,16 @@ FTNMessageScanTossModule.prototype.startup = function(cb) {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
//
|
||||
// If the watch file already exists, kick off now
|
||||
// https://github.com/NuSkooler/enigma-bbs/issues/122
|
||||
//
|
||||
fse.exists(importSchedule.watchFile, exists => {
|
||||
if(exists) {
|
||||
tryImportNow(`Performing import/toss due to @watch: ${importSchedule.watchFile} (initial exists)`);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue