replace empty monitor check
This commit is contained in:
1 parent
4df08bfa79
commit
e37fbf2a5c
1 file changed
+3
@@ -140,6 +140,9 @@ export class LessSimpleQueue implements IJobQueue {
|
||||
}
|
||||
|
||||
const monitors = await this.monitorsRepository.findAll();
|
||||
if (!monitors) {
|
||||
return true;
|
||||
}
|
||||
for (const monitor of monitors) {
|
||||
const randomOffset = Math.floor(Math.random() * 100);
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in new issue
Block a user