mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-20 20:32:23 -06:00
fix: get integrations sessions by type
This commit is contained in:
@@ -363,9 +363,6 @@ export class OpenaiController extends ChatbotController implements ChatbotContro
|
||||
where: {
|
||||
instanceId,
|
||||
},
|
||||
include: {
|
||||
sessions: true,
|
||||
},
|
||||
});
|
||||
|
||||
if (!bots.length) {
|
||||
@@ -390,9 +387,6 @@ export class OpenaiController extends ChatbotController implements ChatbotContro
|
||||
where: {
|
||||
id: botId,
|
||||
},
|
||||
include: {
|
||||
sessions: true,
|
||||
},
|
||||
});
|
||||
|
||||
if (!bot) {
|
||||
@@ -864,9 +858,7 @@ export class OpenaiController extends ChatbotController implements ChatbotContro
|
||||
instanceId: instanceId,
|
||||
remoteJid,
|
||||
botId: openaiBot ? botId : { not: null },
|
||||
},
|
||||
include: {
|
||||
OpenaiBot: true,
|
||||
type: 'openai',
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
|
||||
@@ -244,6 +244,7 @@ export class OpenaiService {
|
||||
awaitUser: false,
|
||||
botId: data.botId,
|
||||
instanceId: instance.instanceId,
|
||||
type: 'openai',
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -534,6 +535,7 @@ export class OpenaiService {
|
||||
awaitUser: false,
|
||||
botId: data.botId,
|
||||
instanceId: instance.instanceId,
|
||||
type: 'openai',
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user