Skip to content

Commit

Permalink
PR-2023 Send directory entry delete event
Browse files Browse the repository at this point in the history
  • Loading branch information
JanisSaldabols committed Nov 11, 2024
1 parent c0778e4 commit 68c8788
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,15 @@ public class AppListenerService implements ApplicationListener {
log.debug("logDirectoryEvent(id:${de.id} version:${de.version} / ${tenant})");

String topic = "${tenant}_DirectoryEntryUpdate".toString()


Map entry_data = makeDirentJSON(de, false, true, false, false);
Map entry_data

if (deleted) {
entry_data = [:]
entry_data.slug = de.slug
entry_data.id = de.id
entry_data.deleted = true
} else {
entry_data = makeDirentJSON(de, false, true, false, false)
}

log.debug("Publish DirectoryEntryChange_ind event on topic ${topic} ${entry_data.slug}");
Expand Down

0 comments on commit 68c8788

Please sign in to comment.