Revert "Fix SQLite bug: New invoice repeating"

This reverts commit 9eb3aad072.
This commit is contained in:
nicolas.dorier
2018-03-29 12:10:03 +09:00
parent a500a89138
commit 6d8acf54d6

View File

@@ -508,8 +508,7 @@ namespace BTCPayServer.Services.Invoices
try try
{ {
if (await context.SaveChangesAsync().ConfigureAwait(false) == 0) await context.SaveChangesAsync().ConfigureAwait(false);
return null;
} }
catch(DbUpdateException) { return null; } // Already exists catch(DbUpdateException) { return null; } // Already exists
AddToTextSearch(invoiceId, paymentData.GetSearchTerms()); AddToTextSearch(invoiceId, paymentData.GetSearchTerms());