update imports
This commit is contained in:
parent
8f1145ab20
commit
72d6845578
|
@ -1,5 +1,4 @@
|
||||||
import { redis, utils } from "@budibase/backend-core"
|
import { redis, utils, tenancy } from "@budibase/backend-core"
|
||||||
import { getTenantId } from "@budibase/backend-core/src/context"
|
|
||||||
import env from "../environment"
|
import env from "../environment"
|
||||||
|
|
||||||
function getExpirySecondsForDB(db: string) {
|
function getExpirySecondsForDB(db: string) {
|
||||||
|
@ -146,6 +145,6 @@ export async function getInviteCodes() {
|
||||||
if (!env.MULTI_TENANCY) {
|
if (!env.MULTI_TENANCY) {
|
||||||
return results
|
return results
|
||||||
}
|
}
|
||||||
const tenantId = getTenantId()
|
const tenantId = tenancy.getTenantId()
|
||||||
return results.filter(invite => tenantId === invite.info.tenantId)
|
return results.filter(invite => tenantId === invite.info.tenantId)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue