From 9b85bea477e1149d124b3d84a04f45931261d19c Mon Sep 17 00:00:00 2001 From: Bsian Date: Sat, 2 Nov 2019 00:19:09 +0000 Subject: [PATCH] k --- src/commands/cwg_data.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/cwg_data.ts b/src/commands/cwg_data.ts index 76db3d2..7725a0f 100644 --- a/src/commands/cwg_data.ts +++ b/src/commands/cwg_data.ts @@ -21,8 +21,8 @@ export default class CWG_Data extends Command { if (!args[0]) return this.client.commands.get('help').run(message, ['cwg', this.name]); const dom = await this.client.db.Domain.find({ $or: [{ domain: args[0] }, { port: Number(args[0]) || '' }] }); if (!dom.length) return message.channel.createMessage(`***${this.client.stores.emojis.error} The domain or port you provided could not be found.***`); - const embeds: RichEmbed[] = []; - await dom.map(async (domain) => { + // const embeds: RichEmbed[] = []; + const embeds = await dom.map(async (domain) => { const cert = await fs.readFile(domain.x509.cert, { encoding: 'utf8' }); const embed = new RichEmbed(); embed.setTitle('Domain Information');