From 66eed481ea38200b005fb057be299a18f294a622 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Mar 2017 20:11:31 +0900 Subject: [API] Fix bug --- src/api/endpoints/posts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/endpoints/posts.ts') diff --git a/src/api/endpoints/posts.ts b/src/api/endpoints/posts.ts index 458f7d3ded..39548d44ae 100644 --- a/src/api/endpoints/posts.ts +++ b/src/api/endpoints/posts.ts @@ -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'); } -- cgit v1.2.3-freya