Skip to content

Commit

Permalink
Update QuoteAggregateRepository.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jounik53 committed Mar 19, 2024
1 parent 0c657d1 commit 6c38a63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public virtual async Task UpdateQuoteAttachmentsAsync(QuoteRequest quote, IList<

var filesByUrls = allFiles
.Where(x => x.Scope == ModuleConstants.QuoteAttachmentsScope &&
(x.OwnerIsEmpty() || x.OwnerIs(nameof(QuoteRequest), quote.Id)))
(quote.IsTransient() || x.OwnerIsEmpty() || x.OwnerIs(nameof(QuoteRequest), quote.Id)))
.ToDictionary(x => GetFileUrl(x.Id), _ignoreCase);

var changedFiles = new List<File>();
Expand Down

0 comments on commit 6c38a63

Please sign in to comment.