mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 18:45:57 +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[];
|
next?: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IConversationDto = DtoConfig<{
|
export type TConversationCrudsDto = DtoConfig<{
|
||||||
create: ConversationCreateDto;
|
create: ConversationCreateDto;
|
||||||
}>;
|
}>;
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user