Skip to content

Commit

Permalink
Fix incorrect event trigger when saving data adapter to allow startin…
Browse files Browse the repository at this point in the history
…g newly created adapters (#19535)
  • Loading branch information
kodjo-anipah committed Jun 3, 2024
1 parent be014a5 commit c5a9527
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.graylog2.database.utils.ScopedEntityMongoUtils;
import org.graylog2.events.ClusterEventBus;
import org.graylog2.lookup.dto.DataAdapterDto;
import org.graylog2.lookup.events.CachesUpdated;
import org.graylog2.lookup.events.DataAdaptersDeleted;
import org.graylog2.lookup.events.DataAdaptersUpdated;

Expand Down Expand Up @@ -96,7 +95,7 @@ public DataAdapterDto save(DataAdapterDto dataAdapter) {

public DataAdapterDto saveAndPostEvent(DataAdapterDto dataAdapter) {
final DataAdapterDto savedDataAdapter = save(dataAdapter);
clusterEventBus.post(CachesUpdated.create(savedDataAdapter.id()));
clusterEventBus.post(DataAdaptersUpdated.create(savedDataAdapter.id()));

return savedDataAdapter;
}
Expand Down

0 comments on commit c5a9527

Please sign in to comment.