mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修改订阅默认排序
This commit is contained in:
parent
591a5006da
commit
e4ad8f512e
|
@ -62,7 +62,10 @@ export default class SubscriptionService {
|
|||
try {
|
||||
const result = await SubscriptionModel.findAll({
|
||||
where: query,
|
||||
order: [['createdAt', 'DESC']],
|
||||
order: [
|
||||
['is_disabled', 'ASC'],
|
||||
['createdAt', 'DESC'],
|
||||
],
|
||||
});
|
||||
return result as any;
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user