From de1627bb7034eed1a899b324c77a37134c13c20f Mon Sep 17 00:00:00 2001 From: Dzmitry Chervanenka Date: Mon, 2 Sep 2024 13:42:08 +0300 Subject: [PATCH] fix: fix eslint issues --- client/src/services/mentorRegistry.ts | 2 +- nestjs/src/registry/registry.controller.ts | 3 +-- nestjs/src/registry/registry.service.ts | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/client/src/services/mentorRegistry.ts b/client/src/services/mentorRegistry.ts index 5b9fe10e0..56ccebeb7 100644 --- a/client/src/services/mentorRegistry.ts +++ b/client/src/services/mentorRegistry.ts @@ -19,7 +19,7 @@ export interface MentorRegistry { } export interface GetMentorRegistriesDto { - status: MentorRegistryTabsMode, + status: MentorRegistryTabsMode; currentPage: number; pageSize: number; githubId?: string; diff --git a/nestjs/src/registry/registry.controller.ts b/nestjs/src/registry/registry.controller.ts index 3648e2cd9..93bd9af6c 100644 --- a/nestjs/src/registry/registry.controller.ts +++ b/nestjs/src/registry/registry.controller.ts @@ -19,7 +19,6 @@ export enum MentorRegistryTabsMode { All = 'all', } - @Controller('registry') @ApiTags('registry') @UseGuards(DefaultGuard, RoleGuard) @@ -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, diff --git a/nestjs/src/registry/registry.service.ts b/nestjs/src/registry/registry.service.ts index 884dbc9e5..51919dc7d 100644 --- a/nestjs/src/registry/registry.service.ts +++ b/nestjs/src/registry/registry.service.ts @@ -96,7 +96,7 @@ export class RegistryService { technicalMentoring, coursesIds, disciplineNames, - status + status, }: { githubId?: string; cityName?: string; @@ -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, {