增加 sudo 命令判断

This commit is contained in:
whyour committed 2026-06-13 00:53:41 +08:00
1 parent 7d8feadc78
commit 96b4c90398
10 files changed
+62 -24

No files matched your search

+2 -1
View File
@@ -31,6 +31,7 @@ import { writeFileWithLock } from '../shared/utils';
import { t } from '../shared/i18n';
import { ScheduleType } from '../interface/schedule';
import { logStreamManager } from '../shared/logStreamManager';
import { isEmpty } from 'lodash';
@Service()
export default class CronService {
@@ -401,7 +402,7 @@ export default class CronService {
}
private formatFilterQuery(query: any, filterQuery: any) {
if (filterQuery) {
if (!isEmpty(filterQuery)) {
if (!query[Op.and]) {
query[Op.and] = [];
}