Skip to content

Commit

Permalink
OP-13535: gate review visibility API fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ramyaravi-opsmx committed Apr 28, 2022
1 parent 7489533 commit e633186
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Component;
Expand All @@ -34,7 +35,14 @@
@EnableAsync
public class UserActivityAuditListener implements ApplicationListener {

@Autowired private AuditHandler auditHandler;
// @Autowired private AuditHandler auditHandler;

private AuditHandler auditHandler;

@Autowired
public UserActivityAuditListener(@Lazy AuditHandler auditHandler) {
this.auditHandler = auditHandler;
}

@Async
@Override
Expand Down

0 comments on commit e633186

Please sign in to comment.