From 64ca0476ef808c5257f688381f996f780b7ed246 Mon Sep 17 00:00:00 2001 From: Gabriel Maia Date: Sun, 7 Jan 2024 13:45:08 -0300 Subject: [PATCH] chore: linting code --- .../roles/controllers/roles.controller.ts | 3 +- .../users/interfaces/user.interface.ts | 4 +-- .../users/repositories/user.repository.ts | 2 -- src/resources/generated/i18n/i18n.types.ts | 34 +++++++++---------- 4 files changed, 21 insertions(+), 22 deletions(-) diff --git a/src/modules/roles/controllers/roles.controller.ts b/src/modules/roles/controllers/roles.controller.ts index e3a68f6..4f042c7 100644 --- a/src/modules/roles/controllers/roles.controller.ts +++ b/src/modules/roles/controllers/roles.controller.ts @@ -1,8 +1,9 @@ import { Controller, Get, Param, Patch } from '@nestjs/common'; -import { RolesService } from '@src/modules/roles/services/roles.service'; import { Auth } from '@src/common/decorators/auth.decorator'; import { Roles } from '@src/common/decorators/roles.decorator'; + +import { RolesService } from '@src/modules/roles/services/roles.service'; import { RoleType } from '@src/modules/roles/interfaces/roles.interface'; @Auth() diff --git a/src/modules/users/interfaces/user.interface.ts b/src/modules/users/interfaces/user.interface.ts index 4b99e4d..aa968ab 100644 --- a/src/modules/users/interfaces/user.interface.ts +++ b/src/modules/users/interfaces/user.interface.ts @@ -1,11 +1,11 @@ +import { Observable } from 'rxjs'; + import { IKnexRepository, ListOptions, } from '@src/common/module/knex-repository.interface'; import { User } from '@src/modules/users/entities/user.entity'; -import { Observable } from 'rxjs'; import { PaginationOptions } from '@src/common/module/pagination'; -import { Role } from '@src/modules/roles/entities/role.entity'; export const USER_REPOSITORY = Symbol('USER_REPOSITORY'); diff --git a/src/modules/users/repositories/user.repository.ts b/src/modules/users/repositories/user.repository.ts index a81f6b0..4b13eb9 100644 --- a/src/modules/users/repositories/user.repository.ts +++ b/src/modules/users/repositories/user.repository.ts @@ -3,8 +3,6 @@ import { from, map, Observable } from 'rxjs'; import { KnexRepository } from '@src/common/module/knex.repository'; import { IUserRepository } from '@src/modules/users/interfaces/user.interface'; import { User } from '@src/modules/users/entities/user.entity'; -import { Role } from '@src/modules/roles/entities/role.entity'; -import { undefined } from 'zod'; export class UserRepository extends KnexRepository diff --git a/src/resources/generated/i18n/i18n.types.ts b/src/resources/generated/i18n/i18n.types.ts index 589ab83..d247e89 100644 --- a/src/resources/generated/i18n/i18n.types.ts +++ b/src/resources/generated/i18n/i18n.types.ts @@ -1,23 +1,23 @@ /* DO NOT EDIT, file generated by nestjs-i18n */ -import { Path } from "nestjs-i18n"; +import { Path } from 'nestjs-i18n'; export type I18nTranslations = { - "exception": { - "model_not_found": string; - "model_not_active": string; - "invalid_credentials": string; - "field_already_exists": string; - "invalid_token": string; - "expired_token": string; - }; - "model": { - "user": { - "label": string; - "field": { - "email": string; - "username": string; - }; - }; + exception: { + model_not_found: string; + model_not_active: string; + invalid_credentials: string; + field_already_exists: string; + invalid_token: string; + expired_token: string; + }; + model: { + user: { + label: string; + field: { + email: string; + username: string; + }; }; + }; }; export type I18nPath = Path;