aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Repositories/UserRepository.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Data/Repositories/UserRepository.cs')
-rw-r--r--src/DevHive.Data/Repositories/UserRepository.cs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/DevHive.Data/Repositories/UserRepository.cs b/src/DevHive.Data/Repositories/UserRepository.cs
index 1508947..130f96e 100644
--- a/src/DevHive.Data/Repositories/UserRepository.cs
+++ b/src/DevHive.Data/Repositories/UserRepository.cs
@@ -43,8 +43,6 @@ namespace DevHive.Data.Repositories
return await this._context
.Set<User>()
.Include(x => x.Roles)
- // To also return the roles, you need to include the roles table,
- // but then you loose FindAsync, because there is id of role and id of user
.FirstOrDefaultAsync(x => x.Id == id);
}