1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2025-01-06 18:03:35 +09:00
This commit is contained in:
syuilo 2018-05-22 11:39:48 +09:00
parent 3be7952e9f
commit b414068ada

View File

@ -96,8 +96,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
}); });
// Serialize // Serialize
res(await Promise.all(notifications.map(async notification => res(await Promise.all(notifications.map(notification => pack(notification))));
await pack(notification))));
// Mark as read all // Mark as read all
if (notifications.length > 0 && markAsRead) { if (notifications.length > 0 && markAsRead) {