Skip to content

Commit

Permalink
fixup! refactor: remove legacy service
Browse files Browse the repository at this point in the history
  • Loading branch information
cpvalente committed Jan 12, 2025
1 parent bcdf05d commit 55bd741
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions apps/server/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
};

/**
Expand Down

0 comments on commit 55bd741

Please sign in to comment.