mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 11:22:21 -06:00
chore: adjust TriggerType for OpenAI and Typebot integrations
Modifies the TriggerType enum to include a 'none' option and updates the OpenAI and Typebot services to handle this new option. Additionally, the services now require a trigger operator and value when the trigger type is set to 'keyword'. Modified files: - prisma/postgresql-schema.prisma - src/api/integrations/openai/services/openai.service.ts - src/api/integrations/typebot/services/typebot.service.ts Untracked file: - prisma/migrations/20240729115127_modify_trigger_type_openai_typebot_table/
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- AlterEnum
|
||||
ALTER TYPE "TriggerType" ADD VALUE 'none';
|
||||
@@ -36,6 +36,7 @@ enum TypebotSessionStatus {
|
||||
enum TriggerType {
|
||||
all
|
||||
keyword
|
||||
none
|
||||
}
|
||||
|
||||
enum TriggerOperator {
|
||||
|
||||
Reference in New Issue
Block a user