feat: switched to secretapproval check for license

This commit is contained in:
=
2024-05-31 23:10:04 +05:30
parent a13d4a4970
commit 41914e0027
5 changed files with 3 additions and 6 deletions
@@ -86,7 +86,7 @@ export const secretImportServiceFactory = ({
);
if (isReplication) {
const plan = await licenseService.getPlan(actorOrgId);
if (!plan.secretReplication) {
if (!plan.secretApproval) {
throw new BadRequestError({
message: "Failed to create secret replication due to plan restriction. Upgrade plan to create replication."
});
@@ -338,7 +338,7 @@ export const secretImportServiceFactory = ({
);
const plan = await licenseService.getPlan(actorOrgId);
if (!plan.secretReplication) {
if (!plan.secretApproval) {
throw new BadRequestError({
message: "Failed to create secret replication due to plan restriction. Upgrade plan to create replication."
});