Skip to content

Commit

Permalink
PT-15075: 500 when user try to delete quote
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 8, 2024
1 parent 1a9c179 commit 129788d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,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 129788d

Please sign in to comment.