fix(state): harden the audit feed against audit findings

This commit is contained in:
sam committed 2026-10-25 21:23:52 +11:00
1 parent dd9b378431
commit 691002eb9b
13 files changed
+411 -163

No files matched your search

@@ -161,8 +161,8 @@ func (q *Queries) InsertIdentityAliasIgnoreConflict(ctx context.Context, arg Ins
}
const insertIdentityEvent = `-- name: InsertIdentityEvent :exec
INSERT INTO identity_events (identity_id, event_type, from_lifecycle, to_lifecycle, display_name, actor_id, source, request_id, at)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)
INSERT INTO identity_events (identity_id, event_type, from_lifecycle, to_lifecycle, display_name, actor_id, source, request_id, at, org_id)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)
`
type InsertIdentityEventParams struct {
@@ -175,6 +175,7 @@ type InsertIdentityEventParams struct {
Source string
RequestID string
At time.Time
OrgID string
}
func (q *Queries) InsertIdentityEvent(ctx context.Context, arg InsertIdentityEventParams) error {
@@ -188,6 +189,7 @@ func (q *Queries) InsertIdentityEvent(ctx context.Context, arg InsertIdentityEve
arg.Source,
arg.RequestID,
arg.At,
arg.OrgID,
)
return err
}