NAM-APJATEL-BACKEND/utils/helper
unknown 9ae9de471d fix: make fishbone dev_end_id optional (nullable)
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>
2026-04-11 16:56:23 +07:00
..
AGENTS.md adding radiation odp search 2026-04-11 14:25:12 +07:00
activity_logs_helper.go adding more complex response and more readable also adding some feature like rbac 2025-06-11 08:24:42 +07:00
backboneHelperRes.go adding without connection and without towers 2025-06-18 16:14:16 +07:00
deviceHelperRes.go adding multiple images create and update also for the responses 2025-06-15 23:00:25 +07:00
device_details.go adding olt on device creation 2025-06-30 11:12:39 +07:00
device_inspection.go adding nearest device and some addtion feature more complex 2025-06-11 22:48:11 +07:00
fishboneHelperRes.go fix: make fishbone dev_end_id optional (nullable) 2026-04-11 16:56:23 +07:00
image_uploader.go adding multiple images create and update also for the responses 2025-06-15 23:00:25 +07:00
nearest_device_helper.go add image_urls to nearest device 2025-06-20 09:28:31 +07:00
nearest_towers.go adding nearest device for towers 2025-06-18 16:42:03 +07:00
towerHelperRes.go adding multiple images create and update also for the responses 2025-06-15 23:00:25 +07:00