update imports

This commit is contained in:
Martin McKeaveney 2023-03-07 10:01:19 +00:00
parent fd8488d4d3
commit 63e7d9d97e
1 changed files with 2 additions and 3 deletions

View File

@ -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)
}