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/drive | |
| parent | Fix bug (diff) | |
| download | sharkey-66eed481ea38200b005fb057be299a18f294a622.tar.gz sharkey-66eed481ea38200b005fb057be299a18f294a622.tar.bz2 sharkey-66eed481ea38200b005fb057be299a18f294a622.zip | |
[API] Fix bug
Diffstat (limited to 'src/api/endpoints/drive')
| -rw-r--r-- | src/api/endpoints/drive/files.ts | 2 | ||||
| -rw-r--r-- | src/api/endpoints/drive/folders.ts | 2 | ||||
| -rw-r--r-- | src/api/endpoints/drive/stream.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/api/endpoints/drive/files.ts b/src/api/endpoints/drive/files.ts index c1441c554b..2600e613e6 100644 --- a/src/api/endpoints/drive/files.ts +++ b/src/api/endpoints/drive/files.ts @@ -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'); } diff --git a/src/api/endpoints/drive/folders.ts b/src/api/endpoints/drive/folders.ts index 3f4a5bac0e..45c0117ba0 100644 --- a/src/api/endpoints/drive/folders.ts +++ b/src/api/endpoints/drive/folders.ts @@ -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'); } diff --git a/src/api/endpoints/drive/stream.ts b/src/api/endpoints/drive/stream.ts index 6ede044f58..95a7584b15 100644 --- a/src/api/endpoints/drive/stream.ts +++ b/src/api/endpoints/drive/stream.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'); } |