mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-25 03:33:08 +02:00
Clean up
This commit is contained in:
parent
d731acfd8e
commit
85b8625e29
1 changed files with 29 additions and 30 deletions
|
@ -16,8 +16,7 @@ import event from '../../../event';
|
||||||
* @return {Promise<object>}
|
* @return {Promise<object>}
|
||||||
*/
|
*/
|
||||||
module.exports = (params, user) =>
|
module.exports = (params, user) =>
|
||||||
new Promise(async (res, rej) =>
|
new Promise(async (res, rej) => {
|
||||||
{
|
|
||||||
const notificationId = params.notification;
|
const notificationId = params.notification;
|
||||||
|
|
||||||
if (notificationId === undefined || notificationId === null) {
|
if (notificationId === undefined || notificationId === null) {
|
||||||
|
@ -51,4 +50,4 @@ module.exports = (params, user) =>
|
||||||
|
|
||||||
// Publish read_notification event
|
// Publish read_notification event
|
||||||
event(user._id, 'read_notification', notificationObj);
|
event(user._id, 'read_notification', notificationObj);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue