From 381622aa7a0c8dfb9885438b0c833a5184cb6c54 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 2 Sep 2022 18:44:03 +0100 Subject: [PATCH] revert back to circular dep --- packages/backend-core/src/db/views.js | 2 +- packages/backend-core/src/tenancy/tenancy.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend-core/src/db/views.js b/packages/backend-core/src/db/views.js index 8922bf5eb3..9e5dd714c1 100644 --- a/packages/backend-core/src/db/views.js +++ b/packages/backend-core/src/db/views.js @@ -4,7 +4,7 @@ const { DeprecatedViews, SEPARATOR, } = require("./utils") -const { getGlobalDB } = require("../context") +const { getGlobalDB } = require("../tenancy") const { StaticDatabases } = require("./constants") const { doWithDB } = require("./") diff --git a/packages/backend-core/src/tenancy/tenancy.ts b/packages/backend-core/src/tenancy/tenancy.ts index 769165ef23..d776a1d7e7 100644 --- a/packages/backend-core/src/tenancy/tenancy.ts +++ b/packages/backend-core/src/tenancy/tenancy.ts @@ -8,7 +8,7 @@ import { getTenantIDFromAppID, } from "../context" import env from "../environment" -import { queryPlatformView } from "../db/views" +import { queryPlatformView } from "../db" const TENANT_DOC = StaticDatabases.PLATFORM_INFO.docs.tenants const PLATFORM_INFO_DB = StaticDatabases.PLATFORM_INFO.name