internal notifications

This commit is contained in:
Adolfo Reyna
2021-09-26 21:32:25 -07:00
parent 997d28d702
commit 600ec549b4
3 changed files with 17 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ DB.getDB.then((DB)=>{
post = postObj.toObj();
post._id = dbr.insertedId;
if(post.toProfile && post.toProfile != post.profileid){
Notifications.youGotANewPost(post.toProfile, post.profileid, post.content)
Notifications.youGotANewPost(post)
}
return res.json({
status: "ok",