1
0
Fork 0
mirror of synced 2024-09-20 11:27:56 +12:00

Merge pull request #14135 from Budibase/sqs-header

Create a way to enable SQS for all tenants.
This commit is contained in:
Sam Rose 2024-07-10 15:40:13 +01:00 committed by GitHub
commit cc160c9076
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -222,5 +222,13 @@ export function isSqsEnabledForTenant(): boolean {
)
}
// Special case to enable all tenants, for testing in QA.
if (
env.SQS_SEARCH_ENABLE_TENANTS.length === 1 &&
env.SQS_SEARCH_ENABLE_TENANTS[0] === "*"
) {
return true
}
return env.SQS_SEARCH_ENABLE_TENANTS.includes(tenantId)
}