From 8fff0f8624423fd7703bc3f000ead2d285ec0b35 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 5 May 2023 20:31:02 -0400 Subject: [PATCH] fix(striker-ui-api): apply default job progress ENV variable --- striker-ui-api/src/lib/accessModule.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/striker-ui-api/src/lib/accessModule.ts b/striker-ui-api/src/lib/accessModule.ts index 57a1e99d..75eef04f 100644 --- a/striker-ui-api/src/lib/accessModule.ts +++ b/striker-ui-api/src/lib/accessModule.ts @@ -2,7 +2,7 @@ import { ChildProcess, spawn, SpawnOptions } from 'child_process'; import EventEmitter from 'events'; import { readFileSync } from 'fs'; -import { SERVER_PATHS, PGID, PUID } from './consts'; +import { SERVER_PATHS, PGID, PUID, DEFAULT_JOB_PROGRESS } from './consts'; import { formatSql } from './formatSql'; import { @@ -180,7 +180,7 @@ const write = async (script: string) => { }; const insertOrUpdateJob = async ({ - job_progress = 0, + job_progress = DEFAULT_JOB_PROGRESS, line = 0, ...rest }: JobParams) => {