修改更新仓库逻辑

This commit is contained in:
whyour
2023-07-01 20:48:28 +08:00
parent 702c3160ec
commit 1718120623
3 changed files with 8 additions and 17 deletions
+1 -2
View File
@@ -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]);