Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmirgaleev committed Oct 19, 2023
1 parent 5e19dd5 commit 85bca47
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Tzkt.Api/Parameters/Binders/Int32Binder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,16 @@ public Task BindModelAsync(ModelBindingContext bindingContext)
return Task.CompletedTask;
}

if (ge != null && (ge == le || ge == lt + 1))
if (ge != null && ge == le)
{
bindingContext.Result = ModelBindingResult.Success(new Int32Parameter
{
Eq = ge
Eq = ge,
Ne = ne,
Gt = gt,
Lt = lt,
In = @in,
Ni = ni
});

return Task.CompletedTask;
Expand Down

0 comments on commit 85bca47

Please sign in to comment.