Fix notifications schema
This commit is contained in:
@@ -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()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user