Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: address lint errors in cert policy/profile delete
bernie-g05eb0b48eb84
diff --git a/backend/src/services/certificate-policy/certificate-policy-service.ts b/backend/src/services/certificate-policy/certificate-policy-service.tsindex d6ec733a02..3020500972 100644--- a/backend/src/services/certificate-policy/certificate-policy-service.ts+++ b/backend/src/services/certificate-policy/certificate-policy-service.ts@@ -1007,7 +1007,7 @@ export const certificatePolicyServiceFactory = ({throw new NotFoundError({ message: "Failed to delete certificate policy" });}- return deletedTemplate as TCertificatePolicy;+ return deletedTemplate;};const validateCertificateRequest = async (diff --git a/backend/src/services/certificate-profile/certificate-profile-dal.ts b/backend/src/services/certificate-profile/certificate-profile-dal.tsindex 5c738c9ca4..82085f3314 100644--- a/backend/src/services/certificate-profile/certificate-profile-dal.ts+++ b/backend/src/services/certificate-profile/certificate-profile-dal.ts@@ -80,10 +80,7 @@ export const certificateProfileDALFactory = (db: TDbClient) => {const deleteById = async (id: string, tx?: Knex): Promise<TCertificateProfile | undefined> => {try {- const [certificateProfile] = await (tx || db)(TableName.PkiCertificateProfile)- .where({ id })- .del()- .returning("*");+ const [certificateProfile] = await (tx || db)(TableName.PkiCertificateProfile).where({ id }).del().returning("*");if (!certificateProfile) return undefined;