Execute an after_action only on single action or customize it for bulk actions.
Hello!
I have an resource that must send a push notification when one of it's push notifications are updated.
The problem is that I should aggregate bulk actions and send a single push notification in cases where multiple records go to the same user (which is the related resource). I tried to look on the internet and on this forum for a way to do that but couldn't find anything.
But It would be something like sending a message saying that a user has "X 'something' to work on" (in case of bulk) vs saying "You have a 'something' to work on" and I don't want to spam the users with a message that meant to be sent for the single relationship update when we're doing bulks.
I have an resource that must send a push notification when one of it's push notifications are updated.
The problem is that I should aggregate bulk actions and send a single push notification in cases where multiple records go to the same user (which is the related resource). I tried to look on the internet and on this forum for a way to do that but couldn't find anything.
But It would be something like sending a message saying that a user has "X 'something' to work on" (in case of bulk) vs saying "You have a 'something' to work on" and I don't want to spam the users with a message that meant to be sent for the single relationship update when we're doing bulks.
