fix(vehicles): handle empty unit_type during updates

Updated the vehicles API to allow PATCH requests with an empty unit_type. This change ensures that existing records with unit_type='' can be updated without validation errors, while maintaining the default value of 'fuel' for new inserts. This adjustment resolves issues with updating pre-existing vehicle records that lack a unit_type field.
This commit is contained in:
DEls 2026-08-29 19:17:14 +02:00
parent 9ea0a1f65e
commit 2d36e9b1cd
3 changed files with 1943 additions and 0 deletions

Binary file not shown.

File diff suppressed because it is too large Load diff