diff options
| author | otofune <otofune@gmail.com> | 2017-11-05 22:26:16 +0900 |
|---|---|---|
| committer | otofune <otofune@gmail.com> | 2017-11-05 22:26:16 +0900 |
| commit | 7cd6b1c666605c7a256e4a8dd8db5edeb02da6db (patch) | |
| tree | bcaf1d3c35866b282b547371646f772db90cf5b2 /src/api/serializers/post.ts | |
| parent | serializers - user: run promises in parallel as possible (diff) | |
| download | sharkey-7cd6b1c666605c7a256e4a8dd8db5edeb02da6db.tar.gz sharkey-7cd6b1c666605c7a256e4a8dd8db5edeb02da6db.tar.bz2 sharkey-7cd6b1c666605c7a256e4a8dd8db5edeb02da6db.zip | |
follow lint
Diffstat (limited to 'src/api/serializers/post.ts')
| -rw-r--r-- | src/api/serializers/post.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/api/serializers/post.ts b/src/api/serializers/post.ts index 99e9bb667c..e1ab784359 100644 --- a/src/api/serializers/post.ts +++ b/src/api/serializers/post.ts @@ -108,7 +108,7 @@ const self = ( } }); return prev ? prev._id : null; - })() + })(); // Get next post info _post.next = (async () => { @@ -126,7 +126,7 @@ const self = ( } }); return next ? next._id : null; - })() + })(); if (_post.reply_id) { // Populate reply to post @@ -158,8 +158,8 @@ const self = ( myChoice.is_voted = true; } - return poll - })(_post.poll) + return poll; + })(_post.poll); } // Fetch my reaction @@ -176,13 +176,13 @@ const self = ( return reaction.reaction; } - return null + return null; })(); } } // resolve promises in _post object - _post = await rap(_post) + _post = await rap(_post); resolve(_post); }); |