Skip to content
Snippets Groups Projects
Commit 66eed481 authored by syuilo's avatar syuilo
Browse files

[API] Fix bug

parent ee6c7129
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
......@@ -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');
}
......
......@@ -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');
}
......
......@@ -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');
}
......
......@@ -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');
}
......
......@@ -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');
}
......
......@@ -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');
}
......
......@@ -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');
}
......
......@@ -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');
}
......
......@@ -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');
}
......
......@@ -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');
}
......
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment