From 853c00242f08db2d44232fca31f2eba3a1590f4f Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Tue, 1 Apr 2025 11:28:13 +0100 Subject: [PATCH] Respond to PR comments. --- packages/backend-core/src/context/mainContext.ts | 6 ++++++ packages/pro | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/backend-core/src/context/mainContext.ts b/packages/backend-core/src/context/mainContext.ts index ed0c56daaf..e701f111aa 100644 --- a/packages/backend-core/src/context/mainContext.ts +++ b/packages/backend-core/src/context/mainContext.ts @@ -157,6 +157,12 @@ export async function doInTenant( 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( tenantId: string, task: () => T diff --git a/packages/pro b/packages/pro index 0f46b458f3..8eb981cf01 160000 --- a/packages/pro +++ b/packages/pro @@ -1 +1 @@ -Subproject commit 0f46b458f3fd1edd15fa7ff1d16eeb92caee27e1 +Subproject commit 8eb981cf01151261697a8f26c08c4c28f66b8e15