Added id ordering as postgres would return the last changed elements first which breaks pagination

This commit is contained in:
2025-07-24 20:24:00 +02:00
parent 431cdcb260
commit bdc4ad8265
10 changed files with 29 additions and 7 deletions

View File

@@ -55,6 +55,7 @@ public class VariablesController : Controller
var count = await query.CountAsync();
var starVariables = await query
.OrderBy(x => x.Id)
.Skip(page * pageSize)
.Take(pageSize)
.ToArrayAsync();