File tree Expand file tree Collapse file tree
HwProj.CoursesService/HwProj.CoursesService.API/Services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,12 +127,6 @@ await _courseMatesRepository.UpdateAsync(
127127 ) ;
128128
129129 var course = getCourseTask . Result ;
130- var courseMate = new CourseMate
131- {
132- CourseId = courseId ,
133- StudentId = studentId ,
134- IsAccepted = false
135- } ;
136130
137131 _eventBus . Publish ( new LecturerAcceptToCourseEvent
138132 {
@@ -198,7 +192,7 @@ public async Task<Course[]> GetUserCoursesAsync(string userId)
198192 public async Task AcceptLecturerAsync ( long courseId , string lecturerEmail )
199193 {
200194 var userId = await _authServiceClient . FindByEmailAsync ( lecturerEmail ) ;
201- if ( ! ( userId is null ) )
195+ if ( userId is not null )
202196 {
203197 var course = await _coursesRepository . GetAsync ( courseId ) ;
204198 var user = await _authServiceClient . GetAccountData ( userId ) ;
You can’t perform that action at this time.
0 commit comments