[API] Fix bug
This commit is contained in:
parent
ee6c7129e9
commit
66eed481ea
12 changed files with 12 additions and 12 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue