mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-20 20:32:23 -06:00
fix: ajuste na validacao dos bots e pausar sessao
This commit is contained in:
@@ -194,13 +194,13 @@ export class ChatbotController {
|
||||
instance: InstanceDto,
|
||||
session?: IntegrationSession,
|
||||
) {
|
||||
let findBot: null;
|
||||
let findBot: any = null;
|
||||
|
||||
if (!session) {
|
||||
findBot = await findBotByTrigger(botRepository, content, instance.instanceId);
|
||||
|
||||
if (!findBot) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
findBot = await botRepository.findFirst({
|
||||
|
||||
Reference in New Issue
Block a user