[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

@ -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');
}

View File

@ -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');
}

View File

@ -30,7 +30,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');
}

View File

@ -44,7 +44,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');
}

View File

@ -30,7 +30,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');
}

View File

@ -54,7 +54,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');
}

View File

@ -36,7 +36,7 @@ module.exports = (params) =>
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');
}

View File

@ -36,7 +36,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');
}

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');
}

View File

@ -32,7 +32,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');
}

View File

@ -29,7 +29,7 @@ module.exports = (params, me) =>
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');
}

View File

@ -51,7 +51,7 @@ module.exports = (params, me) =>
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');
}