fix: the lint with npm run lint

This commit is contained in:
Josias Maceda
2025-09-09 14:15:16 -03:00
parent 0116bc4c9f
commit b9ae40145d
2 changed files with 23 additions and 24 deletions

View File

@@ -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 {
@@ -59,7 +59,7 @@ export abstract class BaseChatbotController<BotType = any, BotData extends BaseC
settingsRepository: any;
sessionRepository: any;
userMessageDebounce: { [key: string]: { message: string; timeoutId: NodeJS.Timeout } } = {};
// Name of the integration, to be set by the derived class
protected abstract readonly integrationName: string;
@@ -446,14 +446,14 @@ export abstract class BaseChatbotController<BotType = any, BotData extends BaseC
});
const remoteJid = data.remoteJid;
const status = data.status;
const status = data.status;
const session = await this.getSession(remoteJid, instance);
if (this.integrationName === 'Typebot') {
const typebotData = {
remoteJid: remoteJid,
status: status,
session
session,
};
this.waMonitor.waInstances[instance.instanceName].sendDataWebhook(Events.TYPEBOT_CHANGE_STATUS, typebotData);
}
@@ -507,7 +507,7 @@ export abstract class BaseChatbotController<BotType = any, BotData extends BaseC
status: status,
session,
};
return { bot: { ...instance, bot: botData } };
}
} catch (error) {
@@ -887,7 +887,7 @@ export abstract class BaseChatbotController<BotType = any, BotData extends BaseC
};
this.waMonitor.waInstances[instance.instanceName].sendDataWebhook(Events.TYPEBOT_CHANGE_STATUS, typebotData);
}
return;
}