This commit is contained in:
2023-07-29 16:25:16 +03:00
parent 90f0386bfe
commit 4312a5c084
34 changed files with 1998 additions and 61 deletions
@@ -90,7 +90,7 @@ public class AccountRepository : AppRepository<Account>, IAccountRepository
public Account? Get(Guid userId, Guid id)
{
return _context.Accounts!
.Include(x => x.Categories)!
.Include(x => x.Categories!.Where(c => c.Category.UserId == userId))!
.ThenInclude(x => x.Category)
.Include(x => x.AccessRights)!
.ThenInclude(x => x.User)