Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sudokoko committed Nov 5, 2024
1 parent b4017e2 commit d1ed4f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public async Task<IActionResult> DeleteComment(int commentId, [FromQuery] string

CommentEntity? comment = await this.database.Comments.Include(c => c.TargetUser)
.Include(c => c.TargetSlot)
.Include(c => c.TargetSlot!.Creator)
.ThenInclude(s => s!.Creator)
.FirstOrDefaultAsync(c => c.CommentId == commentId);
if (comment == null) return this.Redirect("~/404");
if (comment.Deleted) return this.Redirect(callbackUrl ?? "~/");
Expand Down

0 comments on commit d1ed4f5

Please sign in to comment.