add actor in internal notifications

This commit is contained in:
aeroreyna
2022-04-04 21:30:41 -07:00
parent e7c9d56404
commit 70fffbf55d
2 changed files with 7 additions and 6 deletions

View File

@@ -229,7 +229,7 @@ userDB = (DB) => {
});
}
DB.addNotification = async (profileid, message, postid, commentIndx) => {
DB.addNotification = async (profileid, message, postid, commentIndx, actorid) => {
const _id = DB.ObjectID(profileid);
let update = {
$push:{
@@ -237,7 +237,8 @@ userDB = (DB) => {
ts: new Date(),
body: message,
postid,
commentIndx
commentIndx,
actorid,
}
}
}