Bring changes back

This commit is contained in:
Fang-Pen Lin
2025-11-12 10:47:57 -08:00
parent 192cf5a8f9
commit 0f5fa785a6
3 changed files with 14 additions and 1 deletions
@@ -130,7 +130,7 @@ export const pkiAcmeServiceFactory = ({
if (profile.enrollmentType !== EnrollmentType.ACME) {
throw new NotFoundError({ message: "Certificate profile is not configured for ACME enrollment" });
}
const orgLicensePlan = await licenseService.getPlan(profile.project.orgId);
const orgLicensePlan = await licenseService.getPlan(profile.project!.orgId);
if (!orgLicensePlan.pkiAcme) {
throw new AcmeUnauthorizedError({ message: "The organization does not have a valid license to use ACME" });
}