[API] Fix bug

This commit is contained in:
syuilo 2017-03-03 20:11:31 +09:00
parent ee6c7129e9
commit 66eed481ea
12 changed files with 12 additions and 12 deletions

View file

@ -34,7 +34,7 @@ module.exports = (params, user) =>
if (maxIdErr) return rej('invalid max_id param');
// Check if both of since_id and max_id is specified
if (sinceId !== null && maxId !== null) {
if (sinceId && maxId) {
return rej('cannot set since_id and max_id');
}