修改订阅默认排序

This commit is contained in:
whyour 2022-09-11 22:10:17 +08:00
parent 591a5006da
commit e4ad8f512e

View File

@ -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) {