Skip to content

Commit 455e445

Browse files
authored
fix(nango-monitor-job): internal platform to nango-integration mapping (#3605)
1 parent 6fb6ae9 commit 455e445

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

services/apps/cron_service/src/jobs/nangoMonitoring.job.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ const job: IJobDefinition = {
115115
ctx.log.warn(`${int.platform} integration with id "${int.id}" is not connected to Nango!`)
116116
} else {
117117
const results = await getNangoConnectionStatus(
118-
int.platform == PlatformType.JIRA
119-
? (int.settings.nangoIntegrationName as NangoIntegration)
120-
: (int.platform as NangoIntegration),
118+
platformToNangoIntegration(int.platform as PlatformType, int.settings),
121119
nangoConnection.connection_id,
122120
)
123121
if (!results)

0 commit comments

Comments
 (0)