From 2fcf9288a57a152fbe2596494670c9079e892ece Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 11 Aug 2018 20:53:03 +0900 Subject: [PATCH] Refactoring --- src/server/api/endpoints/messaging/history.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/api/endpoints/messaging/history.ts b/src/server/api/endpoints/messaging/history.ts index 66798d50c..43cceacf9 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)))); });