Skip to content

Commit

Permalink
Merge pull request #67 from Snowflake-Labs/fix-dispatcher
Browse files Browse the repository at this point in the history
Fix alert_id to be populated using format string.
  • Loading branch information
sfc-gh-pkommini authored Jun 12, 2023
2 parents ab7aa1a + 8b3d0dd commit fbc00f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions procedures_js/alert_dispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ return exec(GET_HANDLERS).rows.map((h) => {
$${handler_num},
$${handler_name}(PARSE_JSON(?), PARSE_JSON(?))
)
WHERE alert_id='$${alert_id}'
WHERE alert_id=?
`,
[alert, payload]
[alert, payload, alert_id]
)

return {
Expand Down

0 comments on commit fbc00f8

Please sign in to comment.