improvements + review fixes

This commit is contained in:
x
2025-05-01 17:33:24 -04:00
parent 9f1ac77afa
commit 346d2f213e
8 changed files with 84 additions and 33 deletions
@@ -572,7 +572,12 @@ export const superAdminServiceFactory = ({
};
const invalidateCache = async (type: CacheType) => {
if (type === CacheType.ALL || type === CacheType.SECRETS) await keyStore.deleteItems("secret-manager:*");
let totalKeysCleared = 0;
if (type === CacheType.ALL || type === CacheType.SECRETS)
totalKeysCleared += await keyStore.deleteItems({ pattern: "secret-manager:*" });
return totalKeysCleared;
};
return {