We are trying to populate additional information for modifiedBy in the auditing entity like so, it gets updated fine when creating or updating the entity, but during deletion, the modifyingUserId doesn't get populated, our guess is that it is because of this logic in the library.
Question
We are wondering, why are we saving the event.databaseEntity instead of event.entity during deletion, while it's different for all the save/create operations and if it would be possible to change it to event.entity during deletion as well ?
Context
We are trying to populate additional information for
modifiedBy
in the auditing entity like so, it gets updated fine when creating or updating the entity, but during deletion, themodifyingUserId
doesn't get populated, our guess is that it is because of this logic in the library.Question
We are wondering, why are we saving the
event.databaseEntity
instead ofevent.entity
during deletion, while it's different for all the save/create operations and if it would be possible to change it toevent.entity
during deletion as well ?Thanks for any help with this!