Fix notifications schema

This commit is contained in:
Girish Ramakrishnan
2021-04-19 21:00:31 -07:00
parent 0c8e0c4715
commit 142af8e700
2 changed files with 8 additions and 8 deletions
+7 -7
View File
@@ -45,10 +45,10 @@ function add(userId, eventId, title, message, callback) {
assert.strictEqual(typeof callback, 'function');
notificationdb.add({
userId: userId,
eventId: eventId,
title: title,
message: message,
userId,
eventId,
title,
message,
acknowledged: false
}, function (error, result) {
if (error) return callback(error);
@@ -283,9 +283,9 @@ function alert(id, title, message, callback) {
const data = {
userId: admin.id,
eventId: null,
title: title,
message: message,
acknowledged: acknowledged,
title,
message,
acknowledged,
creationTime: new Date()
};