summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/messaging
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-08-11 20:53:03 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-08-11 20:53:03 +0900
commit2fcf9288a57a152fbe2596494670c9079e892ece (patch)
treed97b16012fd63c4972851aef1cd713c5317e5316 /src/server/api/endpoints/messaging
parent未利用時はTwitterでログインを表示しない (#2156) (diff)
downloadsharkey-2fcf9288a57a152fbe2596494670c9079e892ece.tar.gz
sharkey-2fcf9288a57a152fbe2596494670c9079e892ece.tar.bz2
sharkey-2fcf9288a57a152fbe2596494670c9079e892ece.zip
Refactoring
Diffstat (limited to 'src/server/api/endpoints/messaging')
-rw-r--r--src/server/api/endpoints/messaging/history.ts3
1 files changed, 1 insertions, 2 deletions
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))));
});