mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Fix SQLite bug: New invoice repeating
This commit is contained in:
parent
9355454953
commit
9eb3aad072
1 changed files with 2 additions and 1 deletions
|
@ -508,7 +508,8 @@ namespace BTCPayServer.Services.Invoices
|
|||
|
||||
try
|
||||
{
|
||||
await context.SaveChangesAsync().ConfigureAwait(false);
|
||||
if (await context.SaveChangesAsync().ConfigureAwait(false) == 0)
|
||||
return null;
|
||||
}
|
||||
catch(DbUpdateException) { return null; } // Already exists
|
||||
AddToTextSearch(invoiceId, paymentData.GetSearchTerms());
|
||||
|
|
Loading…
Add table
Reference in a new issue