Skip to content

Commit

Permalink
PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fargekritt committed Jan 16, 2025
1 parent 346a694 commit 3e66899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ public async Task<SearchDialogResult> Handle(SearchDialogQuery request, Cancella
var paginatedList = await dialogQuery
.Include(x => x.Content)
.ThenInclude(x => x.Value.Localizations)
.WhereIf(request.IdempotentKey is not null, x => x.IdempotentKey != null && x.IdempotentKey == request.IdempotentKey)
.Include(x => x.Org)
.WhereIf(request.IdempotentKey is not null, x => x.IdempotentKey == request.IdempotentKey)
.WhereIf(!request.ServiceResource.IsNullOrEmpty(),
x => request.ServiceResource!.Contains(x.ServiceResource))
.WhereIf(!request.Party.IsNullOrEmpty(), x => request.Party!.Contains(x.Party))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public SearchDialogQueryValidator()
.When(x => x.Search is not null);

RuleFor(x => x.IdempotentKey)
.MaximumLength(36)
.WithMessage("'{{PropertyName}}' can't be longer than 36 characters.");
.MaximumLength(36);

RuleFor(x => x.SearchLanguageCode)
.Must(x => x is null || Localization.IsValidCultureCode(x))
Expand Down

0 comments on commit 3e66899

Please sign in to comment.