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

@@ -118,9 +118,8 @@ namespace BTCPayServer.Controllers
entity.Rate = (double)await getRate;
entity.PosData = invoice.PosData;
entity.DepositAddress = await getAddress;
entity = await _InvoiceRepository.CreateInvoiceAsync(store.Id, entity);
await _Watcher.WatchAsync(entity.Id);
_Watcher.Watch(entity.Id);
var resp = entity.EntityToDTO();
return new DataWrapper<InvoiceResponse>(resp) { Facade = "pos/invoice" };
}