This commit is contained in:
Philipinho
2024-03-24 17:02:52 +00:00
parent b44795eea3
commit a4c129c49d
4 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,3 @@
import { IsOptional, IsString, IsUUID } from 'class-validator'; import { IsOptional, IsString, IsUUID } from 'class-validator';
export class AvatarUploadDto { export class AvatarUploadDto {}
}

View File

@ -2,7 +2,8 @@ import {
IsEmail, IsEmail,
IsNotEmpty, IsNotEmpty,
IsOptional, IsOptional,
IsString, MaxLength, IsString,
MaxLength,
MinLength, MinLength,
} from 'class-validator'; } from 'class-validator';

View File

@ -51,7 +51,8 @@ export class AuthService {
} }
async setup(createAdminUserDto: CreateAdminUserDto) { 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); const tokens: TokensDto = await this.tokenService.generateTokens(user);

View File

@ -5,8 +5,7 @@ import { PageHistoryRepository } from '../repositories/page-history.repository';
@Injectable() @Injectable()
export class PageHistoryService { export class PageHistoryService {
constructor(private pageHistoryRepo: PageHistoryRepository) { constructor(private pageHistoryRepo: PageHistoryRepository) {}
}
async findOne(historyId: string): Promise<PageHistory> { async findOne(historyId: string): Promise<PageHistory> {
const history = await this.pageHistoryRepo.findById(historyId); const history = await this.pageHistoryRepo.findById(historyId);