lint
This commit is contained in:
parent
b44795eea3
commit
a4c129c49d
4 changed files with 6 additions and 7 deletions
|
|
@ -1,5 +1,3 @@
|
||||||
import { IsOptional, IsString, IsUUID } from 'class-validator';
|
import { IsOptional, IsString, IsUUID } from 'class-validator';
|
||||||
|
|
||||||
export class AvatarUploadDto {
|
export class AvatarUploadDto {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@ import {
|
||||||
IsEmail,
|
IsEmail,
|
||||||
IsNotEmpty,
|
IsNotEmpty,
|
||||||
IsOptional,
|
IsOptional,
|
||||||
IsString, MaxLength,
|
IsString,
|
||||||
|
MaxLength,
|
||||||
MinLength,
|
MinLength,
|
||||||
} from 'class-validator';
|
} from 'class-validator';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue