Closed sdellysse closed 3 months ago
Update in findById
Method of Searcher
Class
The method for searching for specific content in our system, findById
, has been refined. We are moving away from the previous method of searcherFunction
to a more efficient approach using searchOne
.
Change in Return Type of searchOne
Method
There's an update to what the searchOne
method can potentially return. Apart from existing values, it could now also return undefined
, basically indicating that no matching result was found. This enhancement can be beneficial in the event no match is identified, assisting in error handling and providing more precision in search results.
Closing this PR since changes have been incorporated to PR #1404
Description