From 19b9d4db6161a50e1243d59121f69474b2024302 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 3 Oct 2020 15:17:30 +0300 Subject: [PATCH] Fix missing await when removing blocks --- src/modules/block.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/block.js b/src/modules/block.js index 6a73822..25d51b4 100644 --- a/src/modules/block.js +++ b/src/modules/block.js @@ -20,7 +20,7 @@ module.exports = ({ bot, knex, config, commands }) => { async function expiredBlockLoop() { try { - removeExpiredBlocks(); + await removeExpiredBlocks(); } catch (e) { console.error(e); }