修复定时任务视图排序

This commit is contained in:
whyour
2022-09-03 02:15:32 +08:00
parent 9a3181bc44
commit e5d8adf955
4 changed files with 16 additions and 15 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import { sequelize } from '.';
import { DataTypes, Model } from 'sequelize';
interface SortType {
type: 'ASD' | 'DESC';
type: 'ASC' | 'DESC';
value: string;
}
@@ -23,7 +23,7 @@ export class CrontabView {
this.name = options.name;
this.id = options.id;
this.position = options.position;
this.isDisabled = options.isDisabled;
this.isDisabled = options.isDisabled || 0;
this.filters = options.filters;
this.sorts = options.sorts;
}