From 63e7d9d97e29065e18c5646d2536b2c8e98fc69b Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 7 Mar 2023 10:01:19 +0000 Subject: [PATCH] update imports --- packages/worker/src/utilities/redis.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/worker/src/utilities/redis.ts b/packages/worker/src/utilities/redis.ts index 7ebe858ade..d77e44cd9f 100644 --- a/packages/worker/src/utilities/redis.ts +++ b/packages/worker/src/utilities/redis.ts @@ -1,5 +1,4 @@ -import { redis, utils } from "@budibase/backend-core" -import { getTenantId } from "@budibase/backend-core/src/context" +import { redis, utils, tenancy } from "@budibase/backend-core" import env from "../environment" function getExpirySecondsForDB(db: string) { @@ -146,6 +145,6 @@ export async function getInviteCodes() { if (!env.MULTI_TENANCY) { return results } - const tenantId = getTenantId() + const tenantId = tenancy.getTenantId() return results.filter(invite => tenantId === invite.info.tenantId) }