@@ -11,7 +11,7 @@ const ZENATON_WORKER_URL = "http://localhost";
1111const DEFAULT_WORKER_PORT = 4001 ;
1212const WORKER_API_VERSION = "v_newton" ;
1313
14- const ZENATON_ALFRED_URL = "https://alfred .zenaton.com/api" ;
14+ const ZENATON_GATEWAY_URL = "https://gateway .zenaton.com/api" ;
1515
1616const APP_ENV = "app_env" ;
1717const APP_ID = "app_id" ;
@@ -115,10 +115,10 @@ module.exports = class Client {
115115 return `${ host } ${ path } ` ;
116116 }
117117
118- getAlfredUrl ( ) {
119- const host = process . env . ZENATON_ALFRED_URL
120- ? process . env . ZENATON_ALFRED_URL
121- : ZENATON_ALFRED_URL ;
118+ getGatewayUrl ( ) {
119+ const host = process . env . ZENATON_GATEWAY_URL
120+ ? process . env . ZENATON_GATEWAY_URL
121+ : ZENATON_GATEWAY_URL ;
122122
123123 return host ;
124124 }
@@ -146,7 +146,7 @@ module.exports = class Client {
146146 }
147147
148148 async startScheduledTask ( task ) {
149- const endpoint = this . getAlfredUrl ( ) ;
149+ const endpoint = this . getGatewayUrl ( ) ;
150150 const taskBody = this . getBodyForTask ( task ) ;
151151 const mutation = graphQL . mutations . createTaskSchedule ;
152152 const variables = {
@@ -189,7 +189,7 @@ module.exports = class Client {
189189 }
190190
191191 async startScheduledWorkflow ( flow ) {
192- const endpoint = this . getAlfredUrl ( ) ;
192+ const endpoint = this . getGatewayUrl ( ) ;
193193 const workflowBody = this . getBodyForWorkflow ( flow ) ;
194194 const mutation = graphQL . mutations . createWorkflowSchedule ;
195195 const variables = {
0 commit comments