diff --git a/deno-client/mod.ts b/deno-client/mod.ts index ce931bf677..06b5ccaaa7 100644 --- a/deno-client/mod.ts +++ b/deno-client/mod.ts @@ -53,7 +53,7 @@ export function getInternalStatePath(suffix?: string): string { const flow_path = env_flow_path != undefined && env_flow_path != "" ? env_flow_path : 'NO_FLOW_PATH' const script_path = suffix ?? (env_job_path != undefined && env_job_path != "" ? env_job_path : 'NO_JOB_PATH') const env_schedule_path = Deno.env.get("WM_SCHEDULE_PATH") - const schedule_path = env_flow_path != undefined && env_flow_path != "" ? `/${env_schedule_path}` : '' + const schedule_path = env_schedule_path != undefined && env_schedule_path != "" ? `/${env_schedule_path}` : '' if (script_path.slice(script_path.length - 1) === '/') { throw Error(`The script path must not end with '/', give a name to your script!`)