summaryrefslogtreecommitdiff
path: root/src/api/endpoints/aggregation/posts/reply.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/aggregation/posts/reply.ts')
-rw-r--r--src/api/endpoints/aggregation/posts/reply.ts4
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 541bc594d4..06f94f668e 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 '../../../it';
+import it 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().qed();
+ const [postId, postIdErr] = it(params.post_id).expect.id().required().get();
if (postIdErr) return rej('invalid post_id param');
// Lookup post