[API] Fix bug
This commit is contained in:
@ -31,7 +31,7 @@ module.exports = (params, user, app) =>
|
||||
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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user