refactor: integration folders and fix manager bugs

This commit is contained in:
Davidson Gomes
2024-08-23 13:46:51 -03:00
parent beafc62403
commit 6a62ae85fc
17 changed files with 122 additions and 122 deletions

View File

@@ -150,7 +150,7 @@ export class DifyController extends ChatbotController implements ChatbotControll
try {
const bot = await this.botRepository.create({
data: {
enabled: data.enabled,
enabled: data?.enabled,
description: data.description,
botType: data.botType,
apiUrl: data.apiUrl,
@@ -331,7 +331,7 @@ export class DifyController extends ChatbotController implements ChatbotControll
id: botId,
},
data: {
enabled: data.enabled,
enabled: data?.enabled,
botType: data.botType,
apiUrl: data.apiUrl,
apiKey: data.apiKey,