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
{
if (await context.SaveChangesAsync().ConfigureAwait(false) == 0)
return null;
await context.SaveChangesAsync().ConfigureAwait(false);
}
catch(DbUpdateException) { return null; } // Already exists
AddToTextSearch(invoiceId, paymentData.GetSearchTerms());