diff options
| author | transtrike <transtrike@gmail.com> | 2021-01-24 00:07:44 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-01-24 00:07:44 +0200 |
| commit | f910a2a63cb83b35c6589591400a69c8f7f7917c (patch) | |
| tree | 2e601172f734d53ab7a903426ea2d674b5048a76 /src/DevHive.Data/Repositories/CommentRepository.cs | |
| parent | e01a81954e0fba2c4521e03a76f48a970a87994f (diff) | |
| download | DevHive-f910a2a63cb83b35c6589591400a69c8f7f7917c.tar DevHive-f910a2a63cb83b35c6589591400a69c8f7f7917c.tar.gz DevHive-f910a2a63cb83b35c6589591400a69c8f7f7917c.zip | |
Migrations added; CRUD over Posts&Comments successfully completed
Diffstat (limited to 'src/DevHive.Data/Repositories/CommentRepository.cs')
| -rw-r--r-- | src/DevHive.Data/Repositories/CommentRepository.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DevHive.Data/Repositories/CommentRepository.cs b/src/DevHive.Data/Repositories/CommentRepository.cs index 880631a..006326a 100644 --- a/src/DevHive.Data/Repositories/CommentRepository.cs +++ b/src/DevHive.Data/Repositories/CommentRepository.cs @@ -20,7 +20,7 @@ namespace DevHive.Data.Repositories public async Task<Comment> GetCommentByIssuerAndTimeCreatedAsync(Guid issuerId, DateTime timeCreated) { return await this._context.Comments - .FirstOrDefaultAsync(p => p.IssuerId == issuerId && + .FirstOrDefaultAsync(p => p.CreatorId == issuerId && p.TimeCreated == timeCreated); } #endregion |
