feat: admin set share

This commit is contained in:
archer
2023-06-14 23:37:05 +08:00
parent c6259fca78
commit bf1592d2c6
7 changed files with 77 additions and 26 deletions

View File

@@ -77,7 +77,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
}
},
{
$sort: { 'share.collection': -1 }
$sort: { 'share.topNum': -1, 'share.collection': -1 }
},
{
$skip: (pageNum - 1) * pageSize