Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: use template literals for TTL string to satisfy prefer-template lint rule

Devin AIddee84e6d74f
diff --git a/backend/src/ee/routes/v1/dynamic-secret-lease-router.ts b/backend/src/ee/routes/v1/dynamic-secret-lease-router.ts
index 6c43823823..6a8c9292ab 100644
--- a/backend/src/ee/routes/v1/dynamic-secret-lease-router.ts
+++ b/backend/src/ee/routes/v1/dynamic-secret-lease-router.ts
@@ -71,7 +71,7 @@ export const registerDynamicSecretLeaseRouter = async (server: FastifyZodProvide
environment,
secretPath,
dynamicSecretId: dynamicSecret.id,
- ttl: String(Math.round((new Date(lease.expireAt).getTime() - Date.now()) / 1000)) + "s"
+ ttl: `${Math.round((new Date(lease.expireAt).getTime() - Date.now()) / 1000)}s`
}
});
@@ -227,7 +227,7 @@ export const registerDynamicSecretLeaseRouter = async (server: FastifyZodProvide
environment,
secretPath,
dynamicSecretId: dynamicSecret.id,
- ttl: String(Math.round((new Date(lease.expireAt).getTime() - Date.now()) / 1000)) + "s"
+ ttl: `${Math.round((new Date(lease.expireAt).getTime() - Date.now()) / 1000)}s`
}
});