diff options
| author | transtrike <transtrike@gmail.com> | 2021-02-01 18:28:55 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-02-01 18:28:55 +0200 |
| commit | 6f7c7adced972944f5648b3714baa053037a4160 (patch) | |
| tree | cac3ca1c9b9cc98c1af84c2b46236075a1f1a2f3 /src/DevHive.Data/Repositories/UserRepository.cs | |
| parent | 84f9eebd0895e2c23b5718ee408f056e3cf3ebb2 (diff) | |
| download | DevHive-6f7c7adced972944f5648b3714baa053037a4160.tar DevHive-6f7c7adced972944f5648b3714baa053037a4160.tar.gz DevHive-6f7c7adced972944f5648b3714baa053037a4160.zip | |
GetByUsername & GetById return post Ids; Read POst returns URLs
Diffstat (limited to 'src/DevHive.Data/Repositories/UserRepository.cs')
| -rw-r--r-- | src/DevHive.Data/Repositories/UserRepository.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/DevHive.Data/Repositories/UserRepository.cs b/src/DevHive.Data/Repositories/UserRepository.cs index 4bf919e..6f33570 100644 --- a/src/DevHive.Data/Repositories/UserRepository.cs +++ b/src/DevHive.Data/Repositories/UserRepository.cs @@ -38,6 +38,7 @@ namespace DevHive.Data.Repositories .Include(x => x.Roles) .Include(x => x.Languages) .Include(x => x.Technologies) + .Include(x => x.Posts) .FirstOrDefaultAsync(x => x.Id == id); } @@ -48,6 +49,7 @@ namespace DevHive.Data.Repositories .Include(x => x.Roles) .Include(x => x.Languages) .Include(x => x.Technologies) + .Include(x => x.Posts) .FirstOrDefaultAsync(x => x.UserName == username); } #endregion |
