fix internal state path

This commit is contained in:
Ruben Fiszel
2022-07-29 00:52:55 +02:00
parent 59ab5f711c
commit e0b5baaee7
+1 -1
View File
@@ -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!`)