diff --git a/procedures_js/alert_dispatcher.js b/procedures_js/alert_dispatcher.js index 9e176b2..818ab7e 100644 --- a/procedures_js/alert_dispatcher.js +++ b/procedures_js/alert_dispatcher.js @@ -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 {