Skip to content

Commit

Permalink
fix(temp): use deleted entity in notifications (#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobeal authored Feb 3, 2025
1 parent bfe60b7 commit aaf79ce
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ class NotificationService(
notificationTrigger
).bind()
.map {
val filteredEntity = previousAndUpdatedExpandedEntities.second.filterAttributes(
// using the "previous" entity (it is actually the previous only for deleted entity events)
// to be able to send deleted attributes in case of a entityDeleted event
val filteredEntity = previousAndUpdatedExpandedEntities.first.filterAttributes(
it.notification.attributes?.toSet().orEmpty(),
it.datasetId?.toSet().orEmpty()
)
Expand Down

0 comments on commit aaf79ce

Please sign in to comment.