hyperswitch
hyperswitch copied to clipboard
feat(router): add limit to `generic_user_roles_list_for_org_and_extra`
Type of Change
- [ ] Bugfix
- [x] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
This PR adds the limit parameter to the generic_user_roles_list_for_org_and_extra function.
Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
Motivation and Context
Fixes #5917
How did you test it?
Checklist
- [ ] I formatted the code
cargo +nightly fmt --all - [x] I addressed lints thrown by
cargo clippy - [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
Review changes with SemanticDiff.
Analyzed 3 of 3 files.
| Filename | Status | |
|---|---|---|
| :heavy_check_mark: | crates/router/src/db/user_role.rs | Analyzed |
| :heavy_check_mark: | crates/router/src/core/user_role.rs | Analyzed |
| :heavy_check_mark: | crates/diesel_models/src/query/user_role.rs | Analyzed |