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