Merge pull request #14135 from Budibase/sqs-header
Create a way to enable SQS for all tenants.
This commit is contained in:
commit
cc160c9076
|
@ -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)
|
return env.SQS_SEARCH_ENABLE_TENANTS.includes(tenantId)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue