mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: update the DTOs types naming
This commit is contained in:
@@ -100,6 +100,6 @@ export class UserResetPasswordDto extends PickType(UserCreateDto, [
|
||||
|
||||
export class UserRequestResetDto extends PickType(UserCreateDto, ['email']) {}
|
||||
|
||||
export type UserCrudsDto = DtoConfig<{
|
||||
export type UserDTOCruds = DtoConfig<{
|
||||
create: UserCreateDto;
|
||||
}>;
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
import { BaseRepository } from '@/utils/generics/base-repository';
|
||||
import { TFilterQuery } from '@/utils/types/filter.types';
|
||||
|
||||
import { UserCrudsDto, UserEditProfileDto } from '../dto/user.dto';
|
||||
import { UserDTOCruds, UserEditProfileDto } from '../dto/user.dto';
|
||||
import {
|
||||
User,
|
||||
USER_POPULATE,
|
||||
@@ -35,7 +35,7 @@ export class UserRepository extends BaseRepository<
|
||||
User,
|
||||
UserPopulate,
|
||||
UserFull,
|
||||
UserCrudsDto
|
||||
UserDTOCruds
|
||||
> {
|
||||
constructor(
|
||||
readonly eventEmitter: EventEmitter2,
|
||||
|
||||
@@ -10,7 +10,7 @@ import { Injectable } from '@nestjs/common';
|
||||
|
||||
import { BaseService } from '@/utils/generics/base-service';
|
||||
|
||||
import { UserCrudsDto } from '../dto/user.dto';
|
||||
import { UserDTOCruds } from '../dto/user.dto';
|
||||
import { UserRepository } from '../repositories/user.repository';
|
||||
import { User, UserFull, UserPopulate } from '../schemas/user.schema';
|
||||
|
||||
@@ -19,7 +19,7 @@ export class UserService extends BaseService<
|
||||
User,
|
||||
UserPopulate,
|
||||
UserFull,
|
||||
UserCrudsDto
|
||||
UserDTOCruds
|
||||
> {
|
||||
constructor(readonly repository: UserRepository) {
|
||||
super(repository);
|
||||
|
||||
Reference in New Issue
Block a user