fix collections paging (#171)

This commit is contained in:
Jason Dove
2021-04-16 15:59:31 -05:00
committed by GitHub
parent 466059e2aa
commit e368d4a075
10 changed files with 100 additions and 13 deletions
@@ -183,7 +183,7 @@ namespace ErsatzTV.Infrastructure.Data.Repositories
ORDER BY Name
LIMIT {0} OFFSET {1}",
pageSize,
(pageNumber - 1) * pageSize)
pageNumber * pageSize)
.AsNoTracking()
.ToListAsync();
}