From 55bd7418160a7145b4e27ac4e7f5c3b897aa5439 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Sun, 12 Jan 2025 20:52:00 +0100 Subject: [PATCH] fixup! refactor: remove legacy service --- apps/server/src/app.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/apps/server/src/app.ts b/apps/server/src/app.ts index bafcf473ad..88640c3612 100644 --- a/apps/server/src/app.ts +++ b/apps/server/src/app.ts @@ -228,34 +228,6 @@ export const startServer = async ( */ export const startIntegrations = async () => { checkStart(OntimeStartOrder.InitIO); - - // if a config is not provided, we use the persisted one - const { osc, http } = getDataProvider().getData(); - - if (http) { - logger.info(LogOrigin.Tx, 'Initialising HTTP Integration...'); - try { - httpIntegration.init(http); - integrationService.register(httpIntegration); - } catch (error) { - logger.error(LogOrigin.Tx, `HTTP Integration initialisation failed: ${error}`); - } - } - - if (isOntimeCloud) { - logger.info(LogOrigin.Tx, 'Skipping OSC in Cloud environment...'); - return; - } - - if (osc) { - logger.info(LogOrigin.Tx, 'Initialising OSC Integration...'); - try { - oscIntegration.init(osc); - integrationService.register(oscIntegration); - } catch (error) { - logger.error(LogOrigin.Tx, 'OSC Integration initialisation failed'); - } - } }; /**