subscribe to profiles

This commit is contained in:
Adolfo Reyna
2021-09-02 10:53:50 -07:00
parent ba2b0bcbd6
commit fa0d6ee199
5 changed files with 52 additions and 5 deletions

View File

@@ -29,9 +29,7 @@ postDB = (DB)=>{
const id = DB.ObjectID(postid);
let update = {
$unset:{
reactions:{
[userid]: {}
}
["reactions." + profileid]: ""
},
$set: {
lastUpdated: new Date()