调整分享图列表查询排序 -》 desc

This commit is contained in:
yulixing 2019-07-05 15:08:20 +08:00
parent 67bd291c7e
commit 7cd6c6dd4c

View File

@ -87,6 +87,7 @@ router.post('/list', async (req, res, next) => {
records = await GameShareImageModel.find(opt)
.skip(start)
.limit(limit)
.sort({createdAt: 'desc'})
} else {
records = await GameShareImageModel.find(opt)
}