From ad7de3e5e3d23d0187fe15533429bd9d8bfcbee5 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Thu, 22 Aug 2024 08:14:51 -0400 Subject: [PATCH] wip --- lib/tasks/dialogflow/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/tasks/dialogflow/index.js b/lib/tasks/dialogflow/index.js index ab5cf9cb..723b8df8 100644 --- a/lib/tasks/dialogflow/index.js +++ b/lib/tasks/dialogflow/index.js @@ -20,7 +20,10 @@ class Dialogflow extends Task { assert(this.agent || !this.isCX, 'agent is required for dialogflow cx'); assert(this.credentials, 'dialogflow credentials are required'); - if (!this.isCX) { + if (this.isCX) { + this.environment = this.data.environment || 'default'; + } + else { /* ES: set project id with environment and region (optionally) */ if (this.data.environment && this.data.region) { this.project = `${this.data.project}:${this.data.environment}:${this.data.region}`;