diff --git a/src/server/api/endpoints/messaging/history.ts b/src/server/api/endpoints/messaging/history.ts index 66798d50c5..43cceacf95 100644 --- a/src/server/api/endpoints/messaging/history.ts +++ b/src/server/api/endpoints/messaging/history.ts @@ -40,6 +40,5 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) = }); // Serialize - res(await Promise.all(history.map(async h => - await pack(h.messageId, user)))); + res(await Promise.all(history.map(h => pack(h.messageId, user)))); });