feat(server): moved back audit log to queue now with keystore license

This commit is contained in:
Akhil Mohan
2024-03-01 23:01:18 +05:30
parent 6a7241d7d1
commit 291edf71aa
2 changed files with 17 additions and 21 deletions
@@ -130,6 +130,11 @@ export const licenseServiceFactory = ({
`getPlan: encountered an error when fetching pan [orgId=${orgId}] [projectId=${projectId}] [error]`,
error
);
await keyStore.setItemWithExpiry(
FEATURE_CACHE_KEY(orgId),
LICENSE_SERVER_CLOUD_PLAN_TTL,
JSON.stringify(onPremFeatures)
);
return onPremFeatures;
}
return onPremFeatures;