This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle empty slice and non-slice types in user handler
This fix ensures that in the user handler, the records variable is checked if it's a valid slice type before subsetting. If the records variable is empty or not a slice, an error is returned to the client or an empty subset is returned accordingly. This corrects a runtime panic when an invalid or empty slice was passed.
- Loading branch information