Skip to content

Commit

Permalink
fix: Delete Asynchronous Kudos Comment deletion when canceled - MEED-…
Browse files Browse the repository at this point in the history
…2381 - Meeds-io/meeds#1039 (#314)

Prior to this change, the kudos comment isn't deleted right after canceling the kudos. This change will make the deletion immediate and not asynchronous.
  • Loading branch information
boubaker authored Jul 24, 2023
1 parent 8f3f13f commit 4b8d806
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@
*/
package org.exoplatform.kudos.listener;

import org.exoplatform.commons.api.persistence.ExoTransactional;
import org.exoplatform.container.PortalContainer;
import org.exoplatform.kudos.model.Kudos;
import org.exoplatform.kudos.service.KudosService;
import org.exoplatform.services.listener.Asynchronous;
import org.exoplatform.services.listener.Event;
import org.exoplatform.services.listener.Listener;
import org.exoplatform.social.core.manager.ActivityManager;

@Asynchronous
public class KudosCanceledListener extends Listener<KudosService, Kudos> {

private PortalContainer container;
Expand All @@ -36,7 +33,6 @@ public KudosCanceledListener(PortalContainer container) {
}

@Override
@ExoTransactional
public void onEvent(Event<KudosService, Kudos> event) throws Exception {
Kudos kudos = event.getData();
if (kudos != null && kudos.getActivityId() > 0) {
Expand Down

0 comments on commit 4b8d806

Please sign in to comment.