mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Fix wrong enrollmentType on condition
This commit is contained in:
@@ -213,7 +213,7 @@ export const certificateProfileServiceFactory = ({
|
|||||||
throw new NotFoundError({ message: "Project not found" });
|
throw new NotFoundError({ message: "Project not found" });
|
||||||
}
|
}
|
||||||
const plan = await licenseService.getPlan(project.orgId);
|
const plan = await licenseService.getPlan(project.orgId);
|
||||||
if (!plan.pkiAcme && data.enrollmentType === EnrollmentType.EST) {
|
if (!plan.pkiAcme && data.enrollmentType === EnrollmentType.ACME) {
|
||||||
throw new BadRequestError({
|
throw new BadRequestError({
|
||||||
message: "Failed to create certificate profile: Plan restriction. Upgrade plan to continue"
|
message: "Failed to create certificate profile: Plan restriction. Upgrade plan to continue"
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user