diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-03 20:11:31 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-03 20:11:31 +0900 |
| commit | 66eed481ea38200b005fb057be299a18f294a622 (patch) | |
| tree | 850c55a9ce5070004288ae858f7c744d8f3d0b4d /src/api/endpoints/i | |
| parent | Fix bug (diff) | |
| download | misskey-66eed481ea38200b005fb057be299a18f294a622.tar.gz misskey-66eed481ea38200b005fb057be299a18f294a622.tar.bz2 misskey-66eed481ea38200b005fb057be299a18f294a622.zip | |
[API] Fix bug
Diffstat (limited to 'src/api/endpoints/i')
| -rw-r--r-- | src/api/endpoints/i/notifications.ts | 2 | ||||
| -rw-r--r-- | src/api/endpoints/i/signin_history.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/endpoints/i/notifications.ts b/src/api/endpoints/i/notifications.ts index 21537ea799..4f4f0780b0 100644 --- a/src/api/endpoints/i/notifications.ts +++ b/src/api/endpoints/i/notifications.ts @@ -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'); } diff --git a/src/api/endpoints/i/signin_history.ts b/src/api/endpoints/i/signin_history.ts index db36438bfe..eb8fc8c23f 100644 --- a/src/api/endpoints/i/signin_history.ts +++ b/src/api/endpoints/i/signin_history.ts @@ -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'); } |