From 7cc253ae268d891b3a8cadc4cc1480d963207f83 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 25 Apr 2022 16:23:01 +0300 Subject: [PATCH] forgot to await a promise --- src/structure/components/commands/administration/Import.js | 1 - src/utilities/SettingsMigrator.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/structure/components/commands/administration/Import.js b/src/structure/components/commands/administration/Import.js index 960c9b8..e6326f2 100644 --- a/src/structure/components/commands/administration/Import.js +++ b/src/structure/components/commands/administration/Import.js @@ -60,7 +60,6 @@ class ImportCommand extends SlashCommand { const { webhook } = imported; if (webhook) { - console.log(webhook); if (typeof webhook === 'string') { const hooks = await guild.fetchWebhooks(); const hook = hooks.get(webhook); diff --git a/src/utilities/SettingsMigrator.js b/src/utilities/SettingsMigrator.js index 907f27e..19e5128 100644 --- a/src/utilities/SettingsMigrator.js +++ b/src/utilities/SettingsMigrator.js @@ -50,7 +50,7 @@ class SettingsMigrator { let webhook = null; if (version === '3') - webhook = this.mongo.findOne('webhooks', { guild: this.guild, feature: 'messageLog' }); + webhook = await this.mongo.findOne('webhooks', { guild: this.guild, feature: 'messageLog' }); else if (version === '2') ({ webhook } = settings.chatlogs);