mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-26 09:36:02 -07:00
fix
This commit is contained in:
parent
6cf5a8bca0
commit
954789dad5
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ module.exports = (params, user) =>
|
||||||
if (limitErr) return rej('invalid limit');
|
if (limitErr) return rej('invalid limit');
|
||||||
|
|
||||||
// Get 'offset' parameter
|
// 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');
|
if (offsetErr) return rej('invalid offset');
|
||||||
|
|
||||||
// Lookup post
|
// Lookup post
|
||||||
|
|
Loading…
Reference in a new issue