File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
HwProj.APIGateway/HwProj.APIGateway.API/Filters Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,7 @@ public override async Task OnActionExecutionAsync(ActionExecutingContext context
4949
5050 if ( courseUnitType == "Solution" )
5151 {
52- string ? studentId = null ;
53-
54- HashSet < string > studentIds = [ ] ;
52+ var studentIds = new HashSet < string > ( ) ;
5553 if ( courseId != - 1 )
5654 {
5755 var solution = await _solutionsServiceClient . GetSolutionById ( courseUnitId ) ;
Original file line number Diff line number Diff line change 1+ namespace HwProj . APIGateway . API . Filters ;
12using System . Collections . Generic ;
23using System . Linq ;
34using System . Threading . Tasks ;
910using Microsoft . AspNetCore . Mvc ;
1011using Microsoft . AspNetCore . Mvc . Filters ;
1112
12- namespace HwProj . APIGateway . API . Filters ;
13-
1413public class SolutionPrivacyAttribute : ActionFilterAttribute
1514{
1615 private readonly ICoursesServiceClient _coursesServiceClient ;
@@ -62,11 +61,11 @@ public override async Task OnActionExecutionAsync(ActionExecutingContext context
6261 courseUnitId = fileScopeDto . CourseUnitId ;
6362 }
6463
65- if ( courseUnitType == "Homework" ) next . Invoke ( ) ;
64+ if ( courseUnitType == "Homework" ) await next . Invoke ( ) ;
6665
6766 if ( userRole == Roles . StudentRole )
6867 {
69- HashSet < string > studentIds = [ ] ;
68+ var studentIds = new HashSet < string > ( ) ;
7069 if ( courseId != - 1 )
7170 {
7271 var solution = await _solutionsServiceClient . GetSolutionById ( courseUnitId ) ;
You can’t perform that action at this time.
0 commit comments