bugfix GetIncidentReport
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-25 18:53:59 +11:00
parent e161219aaa
commit c1fdc1f9a6
2 changed files with 3 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ WHERE incident_number = sqlc.arg('incidentNumber');
SELECT * FROM incidents;
-- name: GetIncidentReport :many
SELECT incidents.*, GROUP_CONCAT(worknotes.note, '<br />') AS all_notes
SELECT incidents.*, IFNULL(GROUP_CONCAT(worknotes.note, '<br />'), ' ') AS all_notes
FROM incidents LEFT JOIN worknotes ON incidents.incident_number = worknotes.incident_number
GROUP BY incidents.id;