Adding list notification test

This commit is contained in:
rockstardev
2020-06-15 00:53:12 -05:00
parent 2c44c25b25
commit 261931c8ef
3 changed files with 33 additions and 4 deletions

View File

@@ -55,11 +55,11 @@ namespace BTCPayServer.Controllers
}
[HttpGet]
public async Task<IActionResult> Generate()
public async Task<IActionResult> Generate(string version)
{
await _notificationSender.NoticeNewVersionAsync("1.0.4.4");
await _notificationSender.NoticeNewVersionAsync(version);
// waiting for event handler to catch up
await Task.Delay(1000);
await Task.Delay(500);
return RedirectToAction(nameof(Index));
}