fix: update conversation DTO naming

This commit is contained in:
yassinedorbozgithub 2025-01-10 07:59:04 +01:00
parent 7f59f593c5
commit 239909e711
3 changed files with 5 additions and 5 deletions

View File

@ -58,6 +58,6 @@ export class ConversationCreateDto {
next?: string[]; next?: string[];
} }
export type IConversationDto = DtoConfig<{ export type TConversationCrudsDto = DtoConfig<{
create: ConversationCreateDto; create: ConversationCreateDto;
}>; }>;

View File

@ -13,7 +13,7 @@ import { Model } from 'mongoose';
import { BaseRepository } from '@/utils/generics/base-repository'; import { BaseRepository } from '@/utils/generics/base-repository';
import { IConversationDto } from '../dto/conversation.dto'; import { TConversationCrudsDto } from '../dto/conversation.dto';
import { import {
Conversation, Conversation,
CONVERSATION_POPULATE, CONVERSATION_POPULATE,
@ -26,7 +26,7 @@ export class ConversationRepository extends BaseRepository<
Conversation, Conversation,
ConversationPopulate, ConversationPopulate,
ConversationFull, ConversationFull,
IConversationDto TConversationCrudsDto
> { > {
constructor( constructor(
readonly eventEmitter: EventEmitter2, readonly eventEmitter: EventEmitter2,

View File

@ -12,7 +12,7 @@ import EventWrapper from '@/channel/lib/EventWrapper';
import { LoggerService } from '@/logger/logger.service'; import { LoggerService } from '@/logger/logger.service';
import { BaseService } from '@/utils/generics/base-service'; import { BaseService } from '@/utils/generics/base-service';
import { IConversationDto } from '../dto/conversation.dto'; import { TConversationCrudsDto } from '../dto/conversation.dto';
import { VIEW_MORE_PAYLOAD } from '../helpers/constants'; import { VIEW_MORE_PAYLOAD } from '../helpers/constants';
import { ConversationRepository } from '../repositories/conversation.repository'; import { ConversationRepository } from '../repositories/conversation.repository';
import { Block, BlockFull } from '../schemas/block.schema'; import { Block, BlockFull } from '../schemas/block.schema';
@ -32,7 +32,7 @@ export class ConversationService extends BaseService<
Conversation, Conversation,
ConversationPopulate, ConversationPopulate,
ConversationFull, ConversationFull,
IConversationDto TConversationCrudsDto
> { > {
constructor( constructor(
readonly repository: ConversationRepository, readonly repository: ConversationRepository,