-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor query processing and user retrieval
Introduce QueryParams struct to encapsulate request query parameters, streamlining the extraction and usage within the lending handler. Also, centralize user extraction logic by adding GetUserFromCtx function, improving code reusability and clarity. Error handling is enhanced by logging issues during query parameter parsing. Resolves user handling inconsistency and simplifies event query construction.
- Loading branch information
1 parent
09825d9
commit f60736d
Showing
2 changed files
with
28 additions
and
5 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