Skip to content

Commit

Permalink
set default limit to 1000 (#584)
Browse files Browse the repository at this point in the history
Co-authored-by: Hammerbeck <[email protected]>
  • Loading branch information
Andreass2 and Hammerbeck authored Jan 9, 2025
1 parent 9e6c94a commit 9298787
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private record PartyInfo(string Id, Party? Party);

public async Task<OneOf<LegacyGetCorrespondencesResponse, Error>> Process(LegacyGetCorrespondencesRequest request, ClaimsPrincipal? user, CancellationToken cancellationToken)
{
var limit = request.Limit == 0 ? 50 : request.Limit;
var limit = request.Limit == 0 ? 1000 : request.Limit;
DateTimeOffset? to = request.To != null ? ((DateTimeOffset)request.To).ToUniversalTime() : null;
DateTimeOffset? from = request.From != null ? ((DateTimeOffset)request.From).ToUniversalTime() : null;

Expand Down

0 comments on commit 9298787

Please sign in to comment.