mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修改更新仓库逻辑
This commit is contained in:
@@ -17,7 +17,6 @@ import { TASK_PREFIX, QL_PREFIX } from '../config/const';
|
||||
import cronClient from '../schedule/client';
|
||||
import taskLimit from '../shared/pLimit';
|
||||
import { spawn } from 'cross-spawn';
|
||||
import { Fn } from 'sequelize/types/utils';
|
||||
|
||||
@Service()
|
||||
export default class CronService {
|
||||
@@ -281,7 +280,7 @@ export default class CronService {
|
||||
}
|
||||
}
|
||||
|
||||
private formatViewSort(order: (string | Fn)[][], viewQuery: any) {
|
||||
private formatViewSort(order: string[][], viewQuery: any) {
|
||||
if (viewQuery.sorts && viewQuery.sorts.length > 0) {
|
||||
for (const { property, type } of viewQuery.sorts) {
|
||||
order.unshift([property, type]);
|
||||
|
||||
Reference in New Issue
Block a user