[BUG] Call wrong hook in batch update alerts
quicpx opened this issue · comments
Quí Cao commented
Describe the bug
As reported in discord:
https://discord.com/channels/922879298786975774/922883501974515733/1222823882097033339
To Reproduce
Steps to reproduce the behavior:
- Setup module
IrisWebHooks
with 2 endpoint: 1 forall_create
hook and 1 forall_updated
hook - Bulk close alerts by the
select function
, select multiple alerts then close them by bothClose with note
orSet status
toClosed
. - IRIS trigger to the
all_create
endpoint instead of sending toall_update
endpoint.
Expected behavior
IRIS trigger to the all_update
endpoint.
Additional context
@whikernel confirmed bug at https://discord.com/channels/922879298786975774/922883501974515733/1222824802834710602