diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-02 08:21:30 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-02 08:21:30 +0900 |
| commit | 718060dc855e09f270b8e19c089ed3c3743665e0 (patch) | |
| tree | 334ea8c7dcd04153da311cf6073407f6f14eb423 /src/api/endpoints/posts/polls | |
| parent | wip (diff) | |
| download | sharkey-718060dc855e09f270b8e19c089ed3c3743665e0.tar.gz sharkey-718060dc855e09f270b8e19c089ed3c3743665e0.tar.bz2 sharkey-718060dc855e09f270b8e19c089ed3c3743665e0.zip | |
wip
Diffstat (limited to 'src/api/endpoints/posts/polls')
| -rw-r--r-- | src/api/endpoints/posts/polls/recommendation.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/endpoints/posts/polls/recommendation.ts b/src/api/endpoints/posts/polls/recommendation.ts index 9c92d6cac4..5ccb754496 100644 --- a/src/api/endpoints/posts/polls/recommendation.ts +++ b/src/api/endpoints/posts/polls/recommendation.ts @@ -4,7 +4,7 @@ import $ from 'cafy'; import Vote from '../../../models/poll-vote'; import Post from '../../../models/post'; -import serialize from '../../../serializers/post'; +import { pack } from '../../../models/post'; /** * Get recommended polls @@ -56,5 +56,5 @@ module.exports = (params, user) => new Promise(async (res, rej) => { // Serialize res(await Promise.all(posts.map(async post => - await serialize(post, user, { detail: true })))); + await pack(post, user, { detail: true })))); }); |