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. |
||
|---|---|---|
| .. | ||
| __pycache__ | ||
| migrations | ||
| build-og-image.mjs | ||
| generate-plant-hours-template.ts | ||
| migrate-delivery-notes-ocr.py | ||
| patch-next-dev-blocker.cjs | ||
| pb-bootstrap-schema.py | ||
| pb-relax-rules.py | ||