#8 financer-web-client has a hard dependency on push-service

This commit is contained in:
2020-12-24 23:44:25 +01:00
parent ec088d5f37
commit 65a6f5d02c
2 changed files with 5 additions and 5 deletions

View File

@@ -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());

View File

@@ -2,6 +2,6 @@
<hr>
<div>
<span th:text="'financer v' + ${financerVersion}"/>
&nbsp;(<a th:href="@{/changelog.txt}">Changelog</a>,&nbsp;<a th:href="@{/readme.txt}">Readme</a>, <a th:href="@{/sentTestNotification}">Test</a>)
&nbsp;(<a th:href="@{/changelog.txt}">Changelog</a>,&nbsp;<a th:href="@{/readme.txt}">Readme</a>, <a th:href="@{/sendTestNotification}">Test</a>)
</div>
</div>