Skip to content

Commit

Permalink
PT-15075: 500 when user try to delete quote (#98)
Browse files Browse the repository at this point in the history
fix: 500 when user try to delete quote
  • Loading branch information
OlegoO committed Jan 10, 2024
1 parent 83bc4c2 commit 0243193
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(string[] ids)
var dbQuotes = await repository.GetQuoteRequestByIdsAsync(ids);
foreach (var dbQuote in dbQuotes)
{
changedEntries.Add(new GenericChangedEntry<QuoteRequest>(null, quotes.First(x => x.Id == dbQuote.Id), EntryState.Deleted));
changedEntries.Add(new GenericChangedEntry<QuoteRequest>(quotes.First(x => x.Id == dbQuote.Id), EntryState.Deleted));
repository.Remove(dbQuote);
}
repository.UnitOfWork.Commit();
Expand Down

0 comments on commit 0243193

Please sign in to comment.