forked from openhab/openhab-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix paging parameter (page/skip/limit) handling. (openhab#245)
* Fix paging parameter (page/skip/limit) handling. Query parameters are present in req.query, req.params only contains named parameters that are part of the actual URL. This re-applies the changes of commit 34a09b6 which were accidentally dropped in commit cea8d8f. Signed-off-by: Danny Baumann <[email protected]> * Convert limit/skip/page parameters to integers before using them. In particular, MongoDB complains when getting passed limit or skip as strings. Signed-off-by: Danny Baumann <[email protected]>
- Loading branch information
1 parent
90cb738
commit 6302628
Showing
5 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters