👔 Now regular relationship listing method will not giving requests

This commit is contained in:
2026-01-07 01:32:24 +08:00
parent 1fc9c68d80
commit c16add5dfe

View File

@@ -22,6 +22,7 @@ public class RelationshipController(AppDatabase db, RelationshipService rls) : C
var query = db.AccountRelationships.AsQueryable()
.OrderByDescending(r => r.CreatedAt)
.Where(r => r.Status != RelationshipStatus.Pending)
.Where(r => r.AccountId == accountId);
var totalCount = await query.CountAsync();
var relationships = await query