fix: resovled batch function not working with folders

This commit is contained in:
Akhil Mohan
2023-09-11 13:01:49 +05:30
parent 4ce0eccfa1
commit c894952e84
3 changed files with 38 additions and 11 deletions
+4 -2
View File
@@ -578,8 +578,10 @@ export const getSecretsHelper = async ({
}
}
const numberOfSignupSecrets = (secrets.filter((secret) => secret?.metadata?.source === "signup")).length;
const atLeastOneNonSignUpSecret = (secrets.length - numberOfSignupSecrets > 0)
const numberOfSignupSecrets = secrets.filter(
(secret) => secret?.metadata?.source === "signup"
).length;
const atLeastOneNonSignUpSecret = secrets.length - numberOfSignupSecrets > 0;
if (postHogClient && atLeastOneNonSignUpSecret) {
const shouldCapture = authData.userAgent !== K8_USER_AGENT_NAME || shouldRecordK8Event;