fix: update typebot, openai and dify

This commit is contained in:
Davidson Gomes 2024-08-02 19:42:54 -03:00
parent 671b677569
commit 7ad96f54ca
5 changed files with 96 additions and 95 deletions

View File

@ -1,4 +1,4 @@
# 2.0.6-rc (release candidate)
# 2.0.6-rc (2024-08-02 19:23)
### Features
@ -7,6 +7,7 @@
### Fixed
* fetchInstances with clientName parameter
* fixed update typebot, openai and dify
# 2.0.5-rc (2024-08-01 18:01)

View File

@ -1,6 +1,6 @@
{
"name": "evolution-api",
"version": "2.0.5-rc",
"version": "2.0.6-rc",
"description": "Rest api for communication with WhatsApp",
"main": "./dist/src/main.js",
"scripts": {

View File

@ -248,6 +248,7 @@ export class DifyService {
if (checkDuplicate) {
throw new Error('Trigger already exists');
}
}
try {
const dify = await this.prismaRepository.dify.update({
@ -281,7 +282,6 @@ export class DifyService {
throw new Error('Error updating dify');
}
}
}
public async find(instance: InstanceDto): Promise<any> {
const instanceId = await this.prismaRepository.instance

View File

@ -394,6 +394,7 @@ export class OpenaiService {
if (checkDuplicate) {
throw new Error('Trigger already exists');
}
}
try {
const openaiBot = await this.prismaRepository.openaiBot.update({
@ -432,7 +433,6 @@ export class OpenaiService {
throw new Error('Error updating openai bot');
}
}
}
public async find(instance: InstanceDto): Promise<any> {
const instanceId = await this.prismaRepository.instance

View File

@ -248,6 +248,7 @@ export class TypebotService {
if (checkDuplicate) {
throw new Error('Trigger already exists');
}
}
try {
const typebot = await this.prismaRepository.typebot.update({
@ -279,7 +280,6 @@ export class TypebotService {
throw new Error('Error updating typebot');
}
}
}
public async find(instance: InstanceDto): Promise<any> {
const instanceId = await this.prismaRepository.instance