diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-09 03:50:09 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-09 03:50:09 +0900 |
| commit | 31f36fa618e02bab9776a943366167e1009ede48 (patch) | |
| tree | 386dbaa963b3695f6a0febf9b5076e8d42006536 /src/api/endpoints/aggregation/posts/reply.ts | |
| parent | Merge pull request #237 from syuilo/greenkeeper/cafy-1.2.0 (diff) | |
| download | sharkey-31f36fa618e02bab9776a943366167e1009ede48.tar.gz sharkey-31f36fa618e02bab9776a943366167e1009ede48.tar.bz2 sharkey-31f36fa618e02bab9776a943366167e1009ede48.zip | |
:v:
Diffstat (limited to 'src/api/endpoints/aggregation/posts/reply.ts')
| -rw-r--r-- | src/api/endpoints/aggregation/posts/reply.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/endpoints/aggregation/posts/reply.ts b/src/api/endpoints/aggregation/posts/reply.ts index 06f94f668e..c7ba413311 100644 --- a/src/api/endpoints/aggregation/posts/reply.ts +++ b/src/api/endpoints/aggregation/posts/reply.ts @@ -1,7 +1,7 @@ /** * Module dependencies */ -import it from 'cafy'; +import $ from 'cafy'; import Post from '../../../models/post'; /** @@ -12,7 +12,7 @@ import Post from '../../../models/post'; */ module.exports = (params) => new Promise(async (res, rej) => { // Get 'post_id' parameter - const [postId, postIdErr] = it(params.post_id).expect.id().required().get(); + const [postId, postIdErr] = $(params.post_id).id().$; if (postIdErr) return rej('invalid post_id param'); // Lookup post |