From a4c129c49dc8d36ee59f7dda2ee676d56f9fc9f7 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sun, 24 Mar 2024 17:02:52 +0000 Subject: [PATCH] lint --- apps/server/src/core/attachment/dto/avatar-upload.dto.ts | 4 +--- apps/server/src/core/auth/dto/create-user.dto.ts | 3 ++- apps/server/src/core/auth/services/auth.service.ts | 3 ++- apps/server/src/core/page/services/page-history.service.ts | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/server/src/core/attachment/dto/avatar-upload.dto.ts b/apps/server/src/core/attachment/dto/avatar-upload.dto.ts index 40f3609c..c419946c 100644 --- a/apps/server/src/core/attachment/dto/avatar-upload.dto.ts +++ b/apps/server/src/core/attachment/dto/avatar-upload.dto.ts @@ -1,5 +1,3 @@ import { IsOptional, IsString, IsUUID } from 'class-validator'; -export class AvatarUploadDto { - -} +export class AvatarUploadDto {} diff --git a/apps/server/src/core/auth/dto/create-user.dto.ts b/apps/server/src/core/auth/dto/create-user.dto.ts index 0cd477e5..0fc3b416 100644 --- a/apps/server/src/core/auth/dto/create-user.dto.ts +++ b/apps/server/src/core/auth/dto/create-user.dto.ts @@ -2,7 +2,8 @@ import { IsEmail, IsNotEmpty, IsOptional, - IsString, MaxLength, + IsString, + MaxLength, MinLength, } from 'class-validator'; diff --git a/apps/server/src/core/auth/services/auth.service.ts b/apps/server/src/core/auth/services/auth.service.ts index 8d9b61ca..789f8946 100644 --- a/apps/server/src/core/auth/services/auth.service.ts +++ b/apps/server/src/core/auth/services/auth.service.ts @@ -51,7 +51,8 @@ export class AuthService { } async setup(createAdminUserDto: CreateAdminUserDto) { - const user: User = await this.signupService.initialSetup(createAdminUserDto); + const user: User = + await this.signupService.initialSetup(createAdminUserDto); const tokens: TokensDto = await this.tokenService.generateTokens(user); diff --git a/apps/server/src/core/page/services/page-history.service.ts b/apps/server/src/core/page/services/page-history.service.ts index 193bf683..bad9157f 100644 --- a/apps/server/src/core/page/services/page-history.service.ts +++ b/apps/server/src/core/page/services/page-history.service.ts @@ -5,8 +5,7 @@ import { PageHistoryRepository } from '../repositories/page-history.repository'; @Injectable() export class PageHistoryService { - constructor(private pageHistoryRepo: PageHistoryRepository) { - } + constructor(private pageHistoryRepo: PageHistoryRepository) {} async findOne(historyId: string): Promise { const history = await this.pageHistoryRepo.findById(historyId);