🐛 Fix pool order
This commit is contained in:
@@ -19,6 +19,7 @@ public class FilePoolController(AppDatabase db, FileService fs) : ControllerBase
|
|||||||
var pools = await db.Pools
|
var pools = await db.Pools
|
||||||
.Where(p => p.PolicyConfig.PublicUsable || p.AccountId == accountId)
|
.Where(p => p.PolicyConfig.PublicUsable || p.AccountId == accountId)
|
||||||
.Where(p => !p.IsHidden || p.AccountId == accountId)
|
.Where(p => !p.IsHidden || p.AccountId == accountId)
|
||||||
|
.OrderBy(p => p.CreatedAt)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
pools = pools.Select(p =>
|
pools = pools.Select(p =>
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user