From 224f83d442cc77977a3c3aa13bc98c5d2d1f32bc Mon Sep 17 00:00:00 2001 From: Romaric Mourgues Date: Wed, 22 Dec 2021 16:05:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20Fix=20node=20build=20(#1846)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twake/backend/node/src/cli/cmds/migration_cmds/application.ts | 4 ++-- .../applications/web/controllers/company-applications.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/twake/backend/node/src/cli/cmds/migration_cmds/application.ts b/twake/backend/node/src/cli/cmds/migration_cmds/application.ts index 8cbdf3d84b..744d84f936 100644 --- a/twake/backend/node/src/cli/cmds/migration_cmds/application.ts +++ b/twake/backend/node/src/cli/cmds/migration_cmds/application.ts @@ -184,8 +184,8 @@ export const importDepreciatedDisplayFields = ( let display = application.display; if (!display?.twake) { - display = display || { twake: { version: 1 } }; - display.twake = display.twake || { version: 1 }; + display = display || { twake: {} }; + display.twake = display.twake || {}; } display.twake.tab = depreciatedDisplay?.channel_tab diff --git a/twake/backend/node/src/services/applications/web/controllers/company-applications.ts b/twake/backend/node/src/services/applications/web/controllers/company-applications.ts index a9622cf3df..4e6786a4af 100644 --- a/twake/backend/node/src/services/applications/web/controllers/company-applications.ts +++ b/twake/backend/node/src/services/applications/web/controllers/company-applications.ts @@ -8,7 +8,6 @@ import { ResourceUpdateResponse, } from "../../../../utils/types"; import Application, { PublicApplicationObject } from "../../entities/application"; -import { PublicApplication } from "../../entities/application"; import { RealtimeServiceAPI } from "../../../../core/platform/services/realtime/api"; import { CompanyExecutionContext } from "../types"; import { ApplicationServiceAPI } from "../../api";