mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-30 06:02:50 +01:00
Refactor
This commit is contained in:
parent
3be7952e9f
commit
b414068ada
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue