#8 financer-web-client has a hard dependency on push-service
This commit is contained in:
@@ -196,13 +196,13 @@ public class AccountController {
|
|||||||
|
|
||||||
// ---------------------------------------------
|
// ---------------------------------------------
|
||||||
|
|
||||||
@Autowired
|
@Autowired(required = false)
|
||||||
private SubscriptionService subscriptionService;
|
private SubscriptionService subscriptionService;
|
||||||
private int counter = 0;
|
private int counter = 0;
|
||||||
|
|
||||||
@GetMapping("/sentTestNotification")
|
@GetMapping("/sendTestNotification")
|
||||||
public String sentTestNotification() {
|
public String sendTestNotification() {
|
||||||
if (this.subscriptionService.isInitialized()) {
|
if (this.subscriptionService != null && this.subscriptionService.isInitialized()) {
|
||||||
PayloadDto p = new PayloadDto("Hello from Financer!");
|
PayloadDto p = new PayloadDto("Hello from Financer!");
|
||||||
|
|
||||||
p.setTimestamp(System.currentTimeMillis());
|
p.setTimestamp(System.currentTimeMillis());
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
<hr>
|
<hr>
|
||||||
<div>
|
<div>
|
||||||
<span th:text="'financer v' + ${financerVersion}"/>
|
<span th:text="'financer v' + ${financerVersion}"/>
|
||||||
(<a th:href="@{/changelog.txt}">Changelog</a>, <a th:href="@{/readme.txt}">Readme</a>, <a th:href="@{/sentTestNotification}">Test</a>)
|
(<a th:href="@{/changelog.txt}">Changelog</a>, <a th:href="@{/readme.txt}">Readme</a>, <a th:href="@{/sendTestNotification}">Test</a>)
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user