🐛 Fix pool order

This commit is contained in:
2025-09-25 02:35:33 +08:00
parent c03f2472fa
commit adf371a72e

View File

@@ -19,6 +19,7 @@ public class FilePoolController(AppDatabase db, FileService fs) : ControllerBase
var pools = await db.Pools
.Where(p => p.PolicyConfig.PublicUsable || p.AccountId == accountId)
.Where(p => !p.IsHidden || p.AccountId == accountId)
.OrderBy(p => p.CreatedAt)
.ToListAsync();
pools = pools.Select(p =>
{