Add PendingInvoice inside CreateInvoice

This commit is contained in:
nicolas.dorier
2017-11-12 23:51:14 +09:00
parent a29a8f7ed9
commit 479fc50d9a
4 changed files with 6 additions and 19 deletions

View File

@@ -23,11 +23,11 @@ namespace BTCPayServer.Controllers
[HttpPost]
[Route("invoices/{invoiceId}")]
public async Task<IActionResult> Invoice(string invoiceId, string command)
public IActionResult Invoice(string invoiceId, string command)
{
if (command == "refresh")
{
await _Watcher.WatchAsync(invoiceId, true);
_Watcher.Watch(invoiceId);
}
StatusMessage = "Invoice is state is being refreshed, please refresh the page soon...";
return RedirectToAction(nameof(Invoice), new