diff --git a/api/src/chat/dto/conversation.dto.ts b/api/src/chat/dto/conversation.dto.ts index 0bb2cb82..19b5fdd2 100644 --- a/api/src/chat/dto/conversation.dto.ts +++ b/api/src/chat/dto/conversation.dto.ts @@ -58,6 +58,6 @@ export class ConversationCreateDto { next?: string[]; } -export type ConversationDTOCruds = DtoConfig<{ +export type ConversationDtoMapActions = DtoConfig<{ create: ConversationCreateDto; }>; diff --git a/api/src/chat/repositories/conversation.repository.ts b/api/src/chat/repositories/conversation.repository.ts index 40429a65..fcf216cd 100644 --- a/api/src/chat/repositories/conversation.repository.ts +++ b/api/src/chat/repositories/conversation.repository.ts @@ -13,7 +13,7 @@ import { Model } from 'mongoose'; import { BaseRepository } from '@/utils/generics/base-repository'; -import { ConversationDTOCruds } from '../dto/conversation.dto'; +import { ConversationDtoMapActions } from '../dto/conversation.dto'; import { Conversation, CONVERSATION_POPULATE, @@ -26,7 +26,7 @@ export class ConversationRepository extends BaseRepository< Conversation, ConversationPopulate, ConversationFull, - ConversationDTOCruds + ConversationDtoMapActions > { constructor( readonly eventEmitter: EventEmitter2, diff --git a/api/src/chat/services/conversation.service.ts b/api/src/chat/services/conversation.service.ts index 4f791ea6..f0d36f6a 100644 --- a/api/src/chat/services/conversation.service.ts +++ b/api/src/chat/services/conversation.service.ts @@ -12,7 +12,7 @@ import EventWrapper from '@/channel/lib/EventWrapper'; import { LoggerService } from '@/logger/logger.service'; import { BaseService } from '@/utils/generics/base-service'; -import { ConversationDTOCruds } from '../dto/conversation.dto'; +import { ConversationDtoMapActions } from '../dto/conversation.dto'; import { VIEW_MORE_PAYLOAD } from '../helpers/constants'; import { ConversationRepository } from '../repositories/conversation.repository'; import { Block, BlockFull } from '../schemas/block.schema'; @@ -32,7 +32,7 @@ export class ConversationService extends BaseService< Conversation, ConversationPopulate, ConversationFull, - ConversationDTOCruds + ConversationDtoMapActions > { constructor( readonly repository: ConversationRepository, diff --git a/api/src/user/dto/user.dto.ts b/api/src/user/dto/user.dto.ts index ce706e7d..053414ab 100644 --- a/api/src/user/dto/user.dto.ts +++ b/api/src/user/dto/user.dto.ts @@ -109,6 +109,6 @@ export class UserResetPasswordDto extends PickType(UserCreateDto, [ export class UserRequestResetDto extends PickType(UserCreateDto, ['email']) {} -export type UserDTOCruds = DtoConfig<{ +export type UserDtoMapActions = DtoConfig<{ create: UserCreateDto; }>; diff --git a/api/src/user/repositories/user.repository.ts b/api/src/user/repositories/user.repository.ts index 4b372c17..0bd64de9 100644 --- a/api/src/user/repositories/user.repository.ts +++ b/api/src/user/repositories/user.repository.ts @@ -20,7 +20,7 @@ import { import { BaseRepository } from '@/utils/generics/base-repository'; import { TFilterQuery } from '@/utils/types/filter.types'; -import { UserDTOCruds, UserEditProfileDto } from '../dto/user.dto'; +import { UserDtoMapActions, UserEditProfileDto } from '../dto/user.dto'; import { User, USER_POPULATE, @@ -35,7 +35,7 @@ export class UserRepository extends BaseRepository< User, UserPopulate, UserFull, - UserDTOCruds + UserDtoMapActions > { constructor( readonly eventEmitter: EventEmitter2, diff --git a/api/src/user/services/user.service.ts b/api/src/user/services/user.service.ts index 294a822f..06cc641a 100644 --- a/api/src/user/services/user.service.ts +++ b/api/src/user/services/user.service.ts @@ -10,7 +10,7 @@ import { Injectable } from '@nestjs/common'; import { BaseService } from '@/utils/generics/base-service'; -import { UserDTOCruds } from '../dto/user.dto'; +import { UserDtoMapActions } 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, - UserDTOCruds + UserDtoMapActions > { constructor(readonly repository: UserRepository) { super(repository);