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