Skip to content

Commit 9b60ec5

Browse files
committed
Fix wiring of AuditService into AuthService.
1 parent 8860f77 commit 9b60ec5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • solarnet/solarflux-vernemq-webhook/src/main/java/net/solarnetwork/flux/vernemq/webhook/config

solarnet/solarflux-vernemq-webhook/src/main/java/net/solarnetwork/flux/vernemq/webhook/config/ServiceConfig.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.springframework.context.annotation.Configuration;
3232
import org.springframework.jdbc.core.JdbcTemplate;
3333
import net.solarnetwork.flux.vernemq.webhook.domain.Actor;
34+
import net.solarnetwork.flux.vernemq.webhook.service.AuditService;
3435
import net.solarnetwork.flux.vernemq.webhook.service.AuthService;
3536
import net.solarnetwork.flux.vernemq.webhook.service.AuthorizationEvaluator;
3637
import net.solarnetwork.flux.vernemq.webhook.service.impl.JdbcAuditService;
@@ -86,9 +87,9 @@ public class ServiceConfig {
8687
* @return the service
8788
*/
8889
@Bean
89-
public JdbcAuthService authService() {
90+
public JdbcAuthService authService(final AuditService auditService) {
9091
JdbcAuthService service = new JdbcAuthService(new JdbcTemplate(dataSource),
91-
authorizationEvaluator, auditService());
92+
authorizationEvaluator, auditService);
9293
service.setSnHost(snHost);
9394
service.setSnPath(snPath);
9495
service.setMaxDateSkew(authMaxDateSkew);

0 commit comments

Comments
 (0)