From 41b45c212d3f9c12bc8f333695b15d1d3acdc5ed Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Sun, 18 May 2025 00:17:38 +0800 Subject: [PATCH] misc: addressed lint issue --- .../internal/internal-certificate-authority-fns.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/certificate-authority/internal/internal-certificate-authority-fns.ts b/backend/src/services/certificate-authority/internal/internal-certificate-authority-fns.ts index 77514f096..9e2d9f539 100644 --- a/backend/src/services/certificate-authority/internal/internal-certificate-authority-fns.ts +++ b/backend/src/services/certificate-authority/internal/internal-certificate-authority-fns.ts @@ -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);