修复环境变量排序

This commit is contained in:
whyour
2025-12-26 00:41:32 +08:00
parent 4f6c93cc1c
commit 91b44914f6
+2 -1
View File
@@ -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'],
]);