Same trigger for insert and delete
Hi there,
I was working on some trigger for updating the claims in the JWT for the user that gets changes to their permissions.
The following function came to life because it was not updating on deletes but only on inserts.
I have to execute the function for new and old now because an insert gives an object called
Because this seems incorrect I was wondering if there is a better way to do this. Is there an object which is always available or is this the correct way?
Thanks in advance!
I was working on some trigger for updating the claims in the JWT for the user that gets changes to their permissions.
The following function came to life because it was not updating on deletes but only on inserts.
I have to execute the function for new and old now because an insert gives an object called
new and a delete gives an object called old.Because this seems incorrect I was wondering if there is a better way to do this. Is there an object which is always available or is this the correct way?
Thanks in advance!