mirror of
https://github.com/whyour/qinglong.git
synced 2025-12-28 10:45:38 +08:00
修复环境变量排序
This commit is contained in:
parent
4f6c93cc1c
commit
91b44914f6
|
|
@ -13,6 +13,7 @@ import {
|
|||
stepPosition,
|
||||
} from '../data/env';
|
||||
import { writeFileWithLock } from '../shared/utils';
|
||||
import { sequelize } from '../data';
|
||||
|
||||
@Service()
|
||||
export default class EnvService {
|
||||
|
|
@ -146,7 +147,7 @@ export default class EnvService {
|
|||
}
|
||||
try {
|
||||
const result = await this.find(condition, [
|
||||
['isPinned', 'DESC'],
|
||||
[sequelize.literal('COALESCE(`isPinned`, 0)'), 'DESC'],
|
||||
['position', 'DESC'],
|
||||
['createdAt', 'ASC'],
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user