Respond to PR comments.

This commit is contained in:
Sam Rose 2025-04-01 11:28:13 +01:00
parent 61cd2dcb9e
commit 853c00242f
No known key found for this signature in database
2 changed files with 7 additions and 1 deletions

View File

@ -157,6 +157,12 @@ export async function doInTenant<T>(
return newContext(updates, task)
}
// We allow self-host licensed users to make use of some Budicloud services
// (e.g. Budibase AI). When they do this, they use their license key as an API
// key. We use that license key to identify the tenant ID, and we set the
// context to be self-host using cloud. This affects things like where their
// quota documents get stored (because we want to avoid creating a new global
// DB for each self-host tenant).
export async function doInSelfHostTenantUsingCloud<T>(
tenantId: string,
task: () => T

@ -1 +1 @@
Subproject commit 0f46b458f3fd1edd15fa7ff1d16eeb92caee27e1
Subproject commit 8eb981cf01151261697a8f26c08c4c28f66b8e15