Skip to content

Commit

Permalink
chore: linting code
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmaialva33 committed Jan 7, 2024
1 parent 22576fc commit 64ca047
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
3 changes: 2 additions & 1 deletion src/modules/roles/controllers/roles.controller.ts
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
4 changes: 2 additions & 2 deletions src/modules/users/interfaces/user.interface.ts
Original file line number Diff line number Diff line change
@@ -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');

Expand Down
2 changes: 0 additions & 2 deletions src/modules/users/repositories/user.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<User>
Expand Down
34 changes: 17 additions & 17 deletions src/resources/generated/i18n/i18n.types.ts
Original file line number Diff line number Diff line change
@@ -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<I18nTranslations>;

0 comments on commit 64ca047

Please sign in to comment.