summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts/context.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/posts/context.ts')
-rw-r--r--src/api/endpoints/posts/context.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/context.ts b/src/api/endpoints/posts/context.ts
index 25ac687d34..53fc4737e5 100644
--- a/src/api/endpoints/posts/context.ts
+++ b/src/api/endpoints/posts/context.ts
@@ -26,7 +26,7 @@ module.exports = (params, user) =>
if (limitErr) return rej('invalid limit');
// Get 'offset' parameter
- const [offset, offsetErr] = it(params.limit).expect.number().min(0).default(0).qed();
+ const [offset, offsetErr] = it(params.offset).expect.number().min(0).default(0).qed();
if (offsetErr) return rej('invalid offset');
// Lookup post