Skip to content

Commit 8d254ca

Browse files
committed
fix(integrations): coerce rootly path ids once for the request body
1 parent b390f15 commit 8d254ca

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/sim/tools/rootly/update_action_item.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const rootlyUpdateActionItemTool: ToolConfig<
9595
}
9696
if (params.dueDate) attributes.due_date = params.dueDate
9797
return {
98-
data: { type: 'incident_action_items', id: params.actionItemId.trim(), attributes },
98+
data: { type: 'incident_action_items', id: String(params.actionItemId).trim(), attributes },
9999
}
100100
},
101101
},

‎apps/sim/tools/rootly/update_alert.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const rootlyUpdateAlertTool: ToolConfig<RootlyUpdateAlertParams, RootlyUp
106106
if (params.environmentIds) {
107107
attributes.environment_ids = params.environmentIds.split(',').map((s: string) => s.trim())
108108
}
109-
return { data: { type: 'alerts', id: params.alertId.trim(), attributes } }
109+
return { data: { type: 'alerts', id: String(params.alertId).trim(), attributes } }
110110
},
111111
},
112112

‎apps/sim/tools/rootly/update_incident.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export const rootlyUpdateIncidentTool: ToolConfig<
166166
if (params.groupIds) {
167167
attributes.group_ids = params.groupIds.split(',').map((s: string) => s.trim())
168168
}
169-
return { data: { type: 'incidents', id: params.incidentId.trim(), attributes } }
169+
return { data: { type: 'incidents', id: String(params.incidentId).trim(), attributes } }
170170
},
171171
},
172172

0 commit comments

Comments
 (0)