Skip to content

Commit

Permalink
fix: fix eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphajax committed Sep 2, 2024
1 parent b0192f3 commit de1627b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/src/services/mentorRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface MentorRegistry {
}

export interface GetMentorRegistriesDto {
status: MentorRegistryTabsMode,
status: MentorRegistryTabsMode;
currentPage: number;
pageSize: number;
githubId?: string;
Expand Down
3 changes: 1 addition & 2 deletions nestjs/src/registry/registry.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export enum MentorRegistryTabsMode {
All = 'all',
}


@Controller('registry')
@ApiTags('registry')
@UseGuards(DefaultGuard, RoleGuard)
Expand Down Expand Up @@ -113,7 +112,7 @@ export class RegistryController {
)
.map(([key]) => Number(key)),
disciplineNames: req.user.isAdmin ? undefined : await this.getDisciplineNamesByCourseIds(req.user.courses),
status
status,
});
return {
total: data.total,
Expand Down
6 changes: 3 additions & 3 deletions nestjs/src/registry/registry.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class RegistryService {
technicalMentoring,
coursesIds,
disciplineNames,
status
status,
}: {
githubId?: string;
cityName?: string;
Expand Down Expand Up @@ -164,8 +164,8 @@ export class RegistryService {
}),
);
}
if(status === MentorRegistryTabsMode.New){
req.andWhere('mentorRegistry.preselectedCourses != mentorRegistry.preferedCourses')
if (status === MentorRegistryTabsMode.New) {
req.andWhere('mentorRegistry.preselectedCourses != mentorRegistry.preferedCourses');
}

const response = await paginate(req, {
Expand Down

0 comments on commit de1627b

Please sign in to comment.