return await
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
ale 2024-11-16 00:28:40 +01:00
parent a3bb3287ef
commit 9ee7eed46a
Signed by: ale
GPG Key ID: 244A9C4DAB1C0C81

View File

@ -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 () => {