limit to 20 post on profiles

This commit is contained in:
Adolfo Reyna
2021-09-26 17:56:08 -07:00
parent fa1043ea3c
commit 7a2b3b9d7b

View File

@@ -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;
});