Fix wrong enrollmentType on condition

This commit is contained in:
Carlos Monastyrski
2025-11-19 02:03:12 -03:00
parent c2f05a6d57
commit 3bf0656d87

View File

@@ -213,7 +213,7 @@ export const certificateProfileServiceFactory = ({
throw new NotFoundError({ message: "Project not found" });
}
const plan = await licenseService.getPlan(project.orgId);
if (!plan.pkiAcme && data.enrollmentType === EnrollmentType.EST) {
if (!plan.pkiAcme && data.enrollmentType === EnrollmentType.ACME) {
throw new BadRequestError({
message: "Failed to create certificate profile: Plan restriction. Upgrade plan to continue"
});