DeviceEndID was uuid.UUID (non-nullable) in entity, DTO, and response. Sending empty string from the frontend caused "invalid uuid" parse error. Changed to *uuid.UUID throughout. CreateFishbone now skips end device lookup, type validation, port check, and port-usage update when DeviceEndID is nil. UpdateFishbone pointer comparisons fixed accordingly. Run once on DB: ALTER TABLE fishbone ALTER COLUMN dev_end_id DROP NOT NULL; Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| activity_logs_res.go | ||
| backbone_res.go | ||
| cable_connections_res.go | ||
| deviceType_res.go | ||
| device_details.go | ||
| device_inspections_res.go | ||
| device_res.go | ||
| fishbone_res.go | ||
| login_res.go | ||
| nearest_devices.go | ||
| nearest_towers.go | ||
| olt.go | ||
| register_res.go | ||
| tower_res.go | ||