👔 Now regular relationship listing method will not giving requests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user