mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-10 18:39:38 -06:00
fix: the lint with npm run lint
This commit is contained in:
parent
0116bc4c9f
commit
b9ae40145d
@ -2,6 +2,7 @@ import { IgnoreJidDto } from '@api/dto/chatbot.dto';
|
||||
import { InstanceDto } from '@api/dto/instance.dto';
|
||||
import { PrismaRepository } from '@api/repository/repository.service';
|
||||
import { WAMonitoringService } from '@api/services/monitor.service';
|
||||
import { Events } from '@api/types/wa.types';
|
||||
import { Logger } from '@config/logger.config';
|
||||
import { BadRequestException } from '@exceptions';
|
||||
import { TriggerOperator, TriggerType } from '@prisma/client';
|
||||
@ -9,7 +10,6 @@ import { getConversationMessage } from '@utils/getConversationMessage';
|
||||
|
||||
import { BaseChatbotDto } from './base-chatbot.dto';
|
||||
import { ChatbotController, ChatbotControllerInterface, EmitData } from './chatbot.controller';
|
||||
import { Events } from '@api/types/wa.types';
|
||||
|
||||
// Common settings interface for all chatbot integrations
|
||||
export interface ChatbotSettings {
|
||||
@ -453,7 +453,7 @@ export abstract class BaseChatbotController<BotType = any, BotData extends BaseC
|
||||
const typebotData = {
|
||||
remoteJid: remoteJid,
|
||||
status: status,
|
||||
session
|
||||
session,
|
||||
};
|
||||
this.waMonitor.waInstances[instance.instanceName].sendDataWebhook(Events.TYPEBOT_CHANGE_STATUS, typebotData);
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { PrismaRepository } from '@api/repository/repository.service';
|
||||
import { WAMonitoringService } from '@api/services/monitor.service';
|
||||
import { Events } from '@api/types/wa.types';
|
||||
import { Auth, ConfigService, HttpServer, Typebot } from '@config/env.config';
|
||||
import { Instance, IntegrationSession, Message, Typebot as TypebotModel } from '@prisma/client';
|
||||
import { getConversationMessage } from '@utils/getConversationMessage';
|
||||
@ -8,7 +9,6 @@ import axios from 'axios';
|
||||
|
||||
import { BaseChatbotService } from '../../base-chatbot.service';
|
||||
import { OpenaiService } from '../../openai/services/openai.service';
|
||||
import { Events } from '@api/types/wa.types';
|
||||
|
||||
export class TypebotService extends BaseChatbotService<TypebotModel, any> {
|
||||
private openaiService: OpenaiService;
|
||||
@ -154,9 +154,9 @@ export class TypebotService extends BaseChatbotService<TypebotModel, any> {
|
||||
}
|
||||
|
||||
const typebotData = {
|
||||
remoteJid: data.remoteJid,
|
||||
status: 'opened',
|
||||
session,
|
||||
remoteJid: data.remoteJid,
|
||||
status: 'opened',
|
||||
session,
|
||||
};
|
||||
this.waMonitor.waInstances[instance.name].sendDataWebhook(Events.TYPEBOT_CHANGE_STATUS, typebotData);
|
||||
|
||||
@ -433,7 +433,6 @@ export class TypebotService extends BaseChatbotService<TypebotModel, any> {
|
||||
session,
|
||||
};
|
||||
instance.sendDataWebhook(Events.TYPEBOT_CHANGE_STATUS, typebotData);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -838,10 +837,10 @@ export class TypebotService extends BaseChatbotService<TypebotModel, any> {
|
||||
}
|
||||
|
||||
const typebotData = {
|
||||
remoteJid: remoteJid,
|
||||
status: statusChange,
|
||||
session,
|
||||
};
|
||||
remoteJid: remoteJid,
|
||||
status: statusChange,
|
||||
session,
|
||||
};
|
||||
waInstance.sendDataWebhook(Events.TYPEBOT_CHANGE_STATUS, typebotData);
|
||||
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user