From 8b3d0dd765c9a424a2410592188bc7c4a12c72fb Mon Sep 17 00:00:00 2001 From: Prasanth Kommini Date: Mon, 12 Jun 2023 14:06:22 -0700 Subject: [PATCH] Fix alert_id to be populated using format string. --- procedures_js/alert_dispatcher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {