Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
parent
a3bb3287ef
commit
9ee7eed46a
@ -39,7 +39,6 @@ module.exports = async (client, apex, app) => {
|
||||
clearTimeout(timeout)
|
||||
ac.abort()
|
||||
})
|
||||
return
|
||||
// console.error(e)
|
||||
}
|
||||
},
|
||||
@ -209,7 +208,7 @@ module.exports = async (client, apex, app) => {
|
||||
servers = instancesall.sort(() => Math.random() - 0.5)
|
||||
}
|
||||
if (server === constant.initialscan) {
|
||||
return await scan(servers.shift())
|
||||
await scan(servers.shift())
|
||||
}
|
||||
app.locals.scannum = instancessorted.length
|
||||
app.locals.scantotal = instancessorted.length
|
||||
@ -224,16 +223,16 @@ module.exports = async (client, apex, app) => {
|
||||
console.log('Done: ' + server + ' - ' + i + ' parts with exit ' + exit + '.')
|
||||
}
|
||||
}))
|
||||
return await scanReturn()
|
||||
await scanReturn()
|
||||
} else {
|
||||
return await scanReturn()
|
||||
await scanReturn()
|
||||
}
|
||||
} catch (e) {
|
||||
// console.error(e)
|
||||
return await scanReturn()
|
||||
await scanReturn()
|
||||
}
|
||||
} else {
|
||||
return await scanReturn()
|
||||
await scanReturn()
|
||||
}
|
||||
},
|
||||
job = schedule.scheduleJob('0 ' + constant.schedule + ' * * *', async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user