From 1bae7f52a24868fdd00da57bf4f28908276647d6 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sat, 4 Jan 2020 14:28:20 +0000 Subject: [PATCH] Solution? --- src/commands/parseall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/parseall.ts b/src/commands/parseall.ts index 97b6428..7c6a452 100644 --- a/src/commands/parseall.ts +++ b/src/commands/parseall.ts @@ -39,7 +39,7 @@ export default class Parseall extends Command { // @ts-ignore const parsed: Promise<{status: 'fulfilled', value: Certificate}>[] | Promise<{status: 'rejected', reason: Error}>[] = await Promise.allSettled(certificates); - const final = search.map(async (a) => { + const final = await search.map(async (a) => { const result = await parsed[search.findIndex((acc) => acc === a)]; if (result.status === 'rejected') { if (result.reason.message.includes('no such file or directory') || result.reason.message.includes('File doesn\'t exist.')) return `${this.client.stores.emojis.error} **${a.username}** Unable to locate certificate`;