Correct placement

merge-requests/4/head
Bsian 2020-01-04 13:18:22 +00:00
parent cf94993dc9
commit 2e1bf68cc0
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 2 additions and 2 deletions

View File

@ -37,9 +37,9 @@ export default class Parseall extends Command {
return parseCertificate(this.client, `${a.homepath}/Validation/${certFile}`);
});
const parsed = await Promise.all(certificates);
const final = search.map((a) => {
const final = search.map(async (a) => {
try {
const parsed = await Promise.all(certificates);
const { notAfter } = parsed[search.findIndex((acc) => acc === a)];
// @ts-ignore
const timeObject: {years: number, months: number, days: number, hours: number, minutes: number, seconds: number, firstDateWasLater: boolean} = moment.preciseDiff(new Date(), notAfter, true);