Skip to content
Snippets Groups Projects
Commit b414068a authored by syuilo's avatar syuilo
Browse files

Refactor

parent 3be7952e
No related branches found
No related tags found
No related merge requests found
......@@ -96,8 +96,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
});
// Serialize
res(await Promise.all(notifications.map(async notification =>
await pack(notification))));
res(await Promise.all(notifications.map(notification => pack(notification))));
// Mark as read all
if (notifications.length > 0 && markAsRead) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment