Add notifications to user when a follow profile posted
This commit is contained in:
@@ -198,6 +198,16 @@ userDB = (DB) => {
|
||||
});
|
||||
}
|
||||
|
||||
DB.getFollowingTheProfile = async (profileId) => {
|
||||
//const profile_id = DB.ObjectID(profileId);
|
||||
let r = await DB.profileCols.find({ following: (profileId+'') })
|
||||
.toArray().catch((err) => {
|
||||
console.log(err);
|
||||
return [];
|
||||
});
|
||||
return r;
|
||||
}
|
||||
|
||||
DB.getData = async (profileid, key) => {
|
||||
let profile = await DB.getProfile(profileid);
|
||||
return profile.data[key];
|
||||
|
||||
Reference in New Issue
Block a user