rename to profile, users are people

This commit is contained in:
Adolfo Reyna
2021-08-18 07:57:19 -07:00
parent 416c14d03b
commit 95a7bcb3ff
6 changed files with 46 additions and 33 deletions

View File

@@ -23,9 +23,9 @@ userDB = (DB) => {
return r;
}
DB.getProfiles = async (userId) => {
const userid = DB.ObjectID(userId);
return await DB.profileCols.find({ userid }).toArray().catch((err) => {
DB.getProfiles = async (profileId) => {
const _id = DB.ObjectID(profileId);
return await DB.profileCols.find({ _id }).toArray().catch((err) => {
console.log(err);
return false;
});