Do not send DistributionSetDeletedEvent twice (#1478)

This commit is contained in:
Michael Herdt
2023-11-17 10:40:16 +01:00
committed by GitHub
parent 0021b03c9a
commit 178b193162
2 changed files with 0 additions and 6 deletions

View File

@@ -335,10 +335,6 @@ public class JpaDistributionSetManagement implements DistributionSetManagement {
// handle the empty list
distributionSetRepository.deleteAllById(toHardDelete);
}
afterCommit.afterCommit(() -> distributionSetIDs.forEach(dsId -> eventPublisherHolder.getEventPublisher()
.publishEvent(new DistributionSetDeletedEvent(tenantAware.getCurrentTenant(), dsId,
JpaDistributionSet.class, eventPublisherHolder.getApplicationId()))));
}
@Override

View File

@@ -9,8 +9,6 @@
*/
package org.eclipse.hawkbit.repository.jpa.repository;
import java.util.List;
import javax.persistence.EntityManager;
import org.eclipse.hawkbit.repository.jpa.model.JpaDistributionSetType;