From 320826a4b93bcd74ce460bda09a7ac25c6e3727a Mon Sep 17 00:00:00 2001 From: rockstardev Date: Sun, 31 Mar 2019 11:48:53 -0500 Subject: [PATCH] Returning empty payload to fix JSON parse error thrown in JS --- BTCPayServer/Controllers/InvoiceController.UI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Controllers/InvoiceController.UI.cs b/BTCPayServer/Controllers/InvoiceController.UI.cs index 528881249..85e832406 100644 --- a/BTCPayServer/Controllers/InvoiceController.UI.cs +++ b/BTCPayServer/Controllers/InvoiceController.UI.cs @@ -438,7 +438,7 @@ namespace BTCPayServer.Controllers return BadRequest(ModelState); } await _InvoiceRepository.UpdateInvoice(invoiceId, data).ConfigureAwait(false); - return Ok(); + return Ok("{}"); } [HttpGet]