mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
fix: update conversation DTO naming
This commit is contained in:
parent
7f59f593c5
commit
239909e711
@ -58,6 +58,6 @@ export class ConversationCreateDto {
|
||||
next?: string[];
|
||||
}
|
||||
|
||||
export type IConversationDto = DtoConfig<{
|
||||
export type TConversationCrudsDto = DtoConfig<{
|
||||
create: ConversationCreateDto;
|
||||
}>;
|
||||
|
@ -13,7 +13,7 @@ import { Model } from 'mongoose';
|
||||
|
||||
import { BaseRepository } from '@/utils/generics/base-repository';
|
||||
|
||||
import { IConversationDto } from '../dto/conversation.dto';
|
||||
import { TConversationCrudsDto } from '../dto/conversation.dto';
|
||||
import {
|
||||
Conversation,
|
||||
CONVERSATION_POPULATE,
|
||||
@ -26,7 +26,7 @@ export class ConversationRepository extends BaseRepository<
|
||||
Conversation,
|
||||
ConversationPopulate,
|
||||
ConversationFull,
|
||||
IConversationDto
|
||||
TConversationCrudsDto
|
||||
> {
|
||||
constructor(
|
||||
readonly eventEmitter: EventEmitter2,
|
||||
|
@ -12,7 +12,7 @@ import EventWrapper from '@/channel/lib/EventWrapper';
|
||||
import { LoggerService } from '@/logger/logger.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 { ConversationRepository } from '../repositories/conversation.repository';
|
||||
import { Block, BlockFull } from '../schemas/block.schema';
|
||||
@ -32,7 +32,7 @@ export class ConversationService extends BaseService<
|
||||
Conversation,
|
||||
ConversationPopulate,
|
||||
ConversationFull,
|
||||
IConversationDto
|
||||
TConversationCrudsDto
|
||||
> {
|
||||
constructor(
|
||||
readonly repository: ConversationRepository,
|
||||
|
Loading…
Reference in New Issue
Block a user