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) => {