Skip to content

Commit

Permalink
fix: unable to search for vehicles with plate length < 3 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Dec 16, 2023
1 parent aae52da commit 7fb4690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/controllers/leo/search/SearchController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export class LeoSearchController {
): Promise<APITypes.PostLeoSearchVehicleData> {
const trimmedPlateOrVin = _plateOrVin?.trim();

if (!trimmedPlateOrVin || trimmedPlateOrVin.length < 3) {
if (!trimmedPlateOrVin || trimmedPlateOrVin.length <= 0) {
return null;
}

Expand Down

0 comments on commit 7fb4690

Please sign in to comment.