feed returns last updated sort order

This commit is contained in:
Adolfo Reyna
2021-09-08 11:28:41 -07:00
parent 66748cec8b
commit 5fbe885f8e

View File

@@ -106,7 +106,7 @@ postDB = (DB)=>{
}} }}
] ]
}; };
return DB.postCols.find(query).sort({_id: -1}).limit(20).toArray().catch((err)=>{ return DB.postCols.find(query).sort({lastUpdated: -1}).limit(20).toArray().catch((err)=>{
console.log(err); console.log(err);
return false; return false;
}); });