mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Refactor
This commit is contained in:
parent
2646ea0a68
commit
35e7169b90
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user