mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-24 14:17:47 -06:00
feat: generic chatbot
This commit is contained in:
@@ -711,7 +711,7 @@ export class DifyController extends ChatbotController implements ChatbotControll
|
||||
if (!this.integrationEnabled) return;
|
||||
|
||||
try {
|
||||
const settings = await this.prismaRepository.difySetting.findFirst({
|
||||
const settings = await this.settingsRepository.findFirst({
|
||||
where: {
|
||||
instanceId: instance.instanceId,
|
||||
},
|
||||
|
||||
@@ -25,7 +25,7 @@ export class DifyService {
|
||||
sessionId: data.remoteJid,
|
||||
status: 'opened',
|
||||
awaitUser: false,
|
||||
botId: data.difyId,
|
||||
botId: data.botId,
|
||||
instanceId: instance.instanceId,
|
||||
},
|
||||
});
|
||||
@@ -52,7 +52,7 @@ export class DifyService {
|
||||
) {
|
||||
const data = await this.createNewSession(instance, {
|
||||
remoteJid,
|
||||
difyId: dify.id,
|
||||
botId: dify.id,
|
||||
});
|
||||
|
||||
if (data.session) {
|
||||
|
||||
Reference in New Issue
Block a user