fix sql and getIncident
continuous-integration/drone/push Build is passing

This commit is contained in:
nathan committed 2025-03-26 10:11:05 +11:00
1 parent c1fdc1f9a6
commit 63c534869e
4 files changed
+52 -29

No files matched your search

+2 -2
View File
@@ -62,8 +62,8 @@ GROUP BY incidents.id;
-- name: CreateWorkNote :one
INSERT into worknotes (
"incident_number", "note"
"incident_number", "note", "created_at"
) VALUES(
?, ?
?, ?, CURRENT_TIMESTAMP
)
RETURNING *;
+2 -2
View File
@@ -132,9 +132,9 @@ func (q *Queries) CreateIncoming(ctx context.Context, arg CreateIncomingParams)
const createWorkNote = `-- name: CreateWorkNote :one
INSERT into worknotes (
"incident_number", "note"
"incident_number", "note", "created_at"
) VALUES(
?, ?
?, ?, CURRENT_TIMESTAMP
)
RETURNING id, incident_number, note, created_at
`