1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-03 09:18:09 +09:00
This commit is contained in:
syuilo 2017-03-03 05:33:59 +09:00
parent c128d2d1a3
commit 8985d55b1b

View File

@ -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