替换 spawn 为 cross-spawn

This commit is contained in:
whyour
2023-05-31 14:25:20 +08:00
parent 0bbb7c7b89
commit a7f97bd729
7 changed files with 21 additions and 9 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
import { Service, Inject } from 'typedi';
import winston from 'winston';
import nodeSchedule from 'node-schedule';
import { ChildProcessWithoutNullStreams, exec, spawn } from 'child_process';
import { ChildProcessWithoutNullStreams } from 'child_process';
import {
ToadScheduler,
LongIntervalJob,
@@ -10,6 +10,7 @@ import {
} from 'toad-scheduler';
import dayjs from 'dayjs';
import { runCronWithLimit } from '../shared/pLimit';
import { spawn } from 'cross-spawn';
interface ScheduleTaskType {
id: number;