Added timestamp to notifications

This commit is contained in:
Isaac Abadi
2022-11-27 12:11:04 -05:00
parent 0efbd11d29
commit ac808fcabe
3 changed files with 6 additions and 1 deletions

View File

@@ -26,7 +26,8 @@ exports.createNotification = (type, actions, data, user_uid) => {
data: data,
user_uid: user_uid,
uid: uuid(),
read: false
read: false,
timestamp: Date.now()/1000
}
return notification;
}