mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 01:12:59 +00:00
fix: resovled batch function not working with folders
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user