mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-13 00:02:30 +10:00
lint
This commit is contained in:
@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user