From 38be94fa074aceffca92a037cb9a3833f2037154 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 20 Jun 2023 12:36:05 +0100 Subject: [PATCH] Fix for test case. --- packages/worker/src/api/controllers/system/environment.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/worker/src/api/controllers/system/environment.ts b/packages/worker/src/api/controllers/system/environment.ts index 564a010d63..f3f917c2dd 100644 --- a/packages/worker/src/api/controllers/system/environment.ts +++ b/packages/worker/src/api/controllers/system/environment.ts @@ -1,14 +1,14 @@ -import { BBContext } from "@budibase/types" +import { Ctx } from "@budibase/types" import env from "../../../environment" -export const fetch = async (ctx: BBContext) => { +export const fetch = async (ctx: Ctx) => { ctx.body = { multiTenancy: !!env.MULTI_TENANCY, + offlineMode: !!env.OFFLINE_MODE, cloud: !env.SELF_HOSTED, accountPortalUrl: env.ACCOUNT_PORTAL_URL, disableAccountPortal: env.DISABLE_ACCOUNT_PORTAL, baseUrl: env.PLATFORM_URL, - offlineMode: env.OFFLINE_MODE, // in test need to pretend its in production for the UI (Cypress) isDev: env.isDev() && !env.isTest(), }