limit to 20 post on profiles
This commit is contained in:
@@ -111,7 +111,7 @@ postDB = (DB)=>{
|
||||
]
|
||||
};
|
||||
}
|
||||
return DB.postCols.find(query).sort({_id: -1}).toArray().catch((err)=>{
|
||||
return DB.postCols.find(query).sort({_id: -1}).limit(20).toArray().catch((err)=>{
|
||||
console.log(err);
|
||||
return false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user