misc: addressed lint issue

This commit is contained in:
Sheen Capadngan
2025-05-18 00:17:38 +08:00
parent ef9269fe10
commit 41b45c212d

View File

@@ -84,7 +84,7 @@ export const InternalCertificateAuthorityFns = ({
const caCertObj = new x509.X509Certificate(decryptedCaCert);
const notBeforeDate = new Date();
const notAfterDate = new Date(new Date().getTime() + ms(subscriber.ttl));
const notAfterDate = new Date(new Date().getTime() + ms(subscriber.ttl ?? "0"));
const caCertNotBeforeDate = new Date(caCertObj.notBefore);
const caCertNotAfterDate = new Date(caCertObj.notAfter);