明树Git Lab

Commit 97a3b951 authored by zfp1's avatar zfp1

updae

parent f5fc6f34
......@@ -209,7 +209,7 @@ async function getDeviceLand(req, res, next) {
const element = list[index];
landIds.push(element.land);
}
let lands = await DB.Land.find({_id: {$in: landIds}, del:0 });
let lands = await DB.Land.find({_id: {$in: landIds}, del:0 }).sort({createdAt: 1});
res.sendData(lands);
} catch (error) {
next(error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment