Added id ordering as postgres would return the last changed elements first which breaks pagination
This commit is contained in:
@@ -34,6 +34,7 @@ public class StarsController : Controller
|
||||
|
||||
var items = await StarRepository
|
||||
.Get()
|
||||
.OrderBy(x => x.Id)
|
||||
.Skip(page * pageSize)
|
||||
.Take(pageSize)
|
||||
.ToArrayAsync();
|
||||
|
||||
Reference in New Issue
Block a user