From b6ecdc010c178802dd4da2045516b1f487e48d7d Mon Sep 17 00:00:00 2001 From: ale Date: Thu, 14 Nov 2024 02:03:34 +0100 Subject: [PATCH] return await --- lib/fediblock.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/fediblock.js b/lib/fediblock.js index bbba1a8..510c3a1 100644 --- a/lib/fediblock.js +++ b/lib/fediblock.js @@ -185,9 +185,9 @@ module.exports = async (client, apex, app) => { scanReturn = async () => { app.locals.scannum = 0 if (servers?.length > 0) { - return await scan(servers.shift()) + await scan(servers.shift()) } else { - return await scan(constant.initialscan) + await scan(constant.initialscan) } }, scan = async server => { @@ -239,5 +239,5 @@ module.exports = async (client, apex, app) => { job = schedule.scheduleJob('0 ' + constant.schedule + ' * * *', async () => { await util.sendFederatedMessage(constant.nick, null, 'Scanning ' + app.locals.server + ' instance with ' + app.locals.scantotal + ' peers\nScanned ' + app.locals.peers + ' peers from ' + app.locals.instances + ' instances, ' + app.locals.created + ' created, ' + app.locals.updated + ' updated\nhttps://' + constant.apexdomain) }) - return await scanReturn() + await scanReturn() }