diff --git a/financer-web-client/src/main/java/de/financer/controller/AccountController.java b/financer-web-client/src/main/java/de/financer/controller/AccountController.java index 3f5db95..e431673 100644 --- a/financer-web-client/src/main/java/de/financer/controller/AccountController.java +++ b/financer-web-client/src/main/java/de/financer/controller/AccountController.java @@ -196,13 +196,13 @@ public class AccountController { // --------------------------------------------- - @Autowired + @Autowired(required = false) private SubscriptionService subscriptionService; private int counter = 0; - @GetMapping("/sentTestNotification") - public String sentTestNotification() { - if (this.subscriptionService.isInitialized()) { + @GetMapping("/sendTestNotification") + public String sendTestNotification() { + if (this.subscriptionService != null && this.subscriptionService.isInitialized()) { PayloadDto p = new PayloadDto("Hello from Financer!"); p.setTimestamp(System.currentTimeMillis()); diff --git a/financer-web-client/src/main/resources/templates/includes/footer.html b/financer-web-client/src/main/resources/templates/includes/footer.html index ff66c12..ab8c391 100644 --- a/financer-web-client/src/main/resources/templates/includes/footer.html +++ b/financer-web-client/src/main/resources/templates/includes/footer.html @@ -2,6 +2,6 @@
-  (ChangelogReadme, Test) +  (ChangelogReadme, Test)
\ No newline at end of file