Skip to content

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

fix: remove unnecessary type assertion on profileId

bernie-g4af7899bf3e6
diff --git a/backend/src/services/certificate-v3/certificate-v3-service.ts b/backend/src/services/certificate-v3/certificate-v3-service.ts
index f6ca952597..bdf15a6e64 100644
--- a/backend/src/services/certificate-v3/certificate-v3-service.ts
+++ b/backend/src/services/certificate-v3/certificate-v3-service.ts
@@ -2333,7 +2333,7 @@ export const certificateV3ServiceFactory = ({
const projectId = profile?.projectId || originalCert.projectId;
if (originalCert.applicationId) {
- const originalProfile = await certificateProfileDAL.findByIdWithConfigs(originalCert.profileId!);
+ const originalProfile = await certificateProfileDAL.findByIdWithConfigs(originalCert.profileId);
if (!originalProfile) {
throw new NotFoundError({ message: "Original certificate profile not found" });
}