Skip to content

Commit 37794cf

Browse files
committed
Fix get swaps pagination
1 parent 68efd9c commit 37794cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

csharp/src/Data.Npgsql/EFSwapRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public async Task<List<Swap>> GetAllAsync(uint page = 1, uint size = 15)
5757
{
5858
return await GetBaseQuery()
5959
.OrderByDescending(x => x.CreatedDate)
60-
.Skip((int)(page * size))
60+
.Skip((int)((page - 1) * size))
6161
.Take((int)size)
6262
.ToListAsync();
6363
}

0 commit comments

Comments
 (0)