Solution?

merge-requests/4/head
Bsian 2020-01-04 14:28:20 +00:00
parent dd1dacfe30
commit 1bae7f52a2
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -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`;