From 9ee7eed46ad1656424d6b4846dca65e7ecda438f Mon Sep 17 00:00:00 2001 From: ale Date: Sat, 16 Nov 2024 00:28:40 +0100 Subject: [PATCH] return await Signed-off-by: ale --- lib/fediblock.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/fediblock.js b/lib/fediblock.js index 510c3a1..70e88a9 100644 --- a/lib/fediblock.js +++ b/lib/fediblock.js @@ -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 () => {