internal notifications
This commit is contained in:
@@ -115,13 +115,15 @@ userDB = (DB) => {
|
||||
});
|
||||
}
|
||||
|
||||
DB.addNotification = async (profileid, message) => {
|
||||
DB.addNotification = async (profileid, message, postid, commentIndx) => {
|
||||
const _id = DB.ObjectID(profileid);
|
||||
let update = {
|
||||
$push:{
|
||||
notifications: {
|
||||
ts: new Date(),
|
||||
body: message
|
||||
body: message,
|
||||
postid,
|
||||
commentIndx
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user