mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Merge pull request #1853 from Kukks/not-if-test-func
Add debug notifications
This commit is contained in:
@@ -87,7 +87,18 @@ namespace BTCPayServer.Controllers
|
||||
|
||||
return new EmptyResult();
|
||||
}
|
||||
#if DEBUG
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> GenerateJunk(int x = 100)
|
||||
{
|
||||
for (int i = 0; i < x; i++)
|
||||
{
|
||||
await _notificationSender.SendNotification(new AdminScope(), new JunkNotification());
|
||||
}
|
||||
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
#endif
|
||||
[HttpGet]
|
||||
public IActionResult Index(int skip = 0, int count = 50, int timezoneOffset = 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user