feed returns last updated sort order
This commit is contained in:
@@ -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;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user