From 16ff83d413073e4406b7258295d368a722c564a2 Mon Sep 17 00:00:00 2001 From: Michal Fiedorowicz Date: Mon, 30 Dec 2024 21:37:42 +0000 Subject: [PATCH] fix: retrieve ingestion logs with null change set Signed-off-by: Michal Fiedorowicz --- diode-server/gen/dbstore/postgres/types.go | 2 +- diode-server/sqlc.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/diode-server/gen/dbstore/postgres/types.go b/diode-server/gen/dbstore/postgres/types.go index cf331d3b..137db8be 100644 --- a/diode-server/gen/dbstore/postgres/types.go +++ b/diode-server/gen/dbstore/postgres/types.go @@ -65,6 +65,6 @@ type VIngestionLogsWithChangeSet struct { SourceMetadata []byte `json:"source_metadata"` CreatedAt pgtype.Timestamptz `json:"created_at"` UpdatedAt pgtype.Timestamptz `json:"updated_at"` - ChangeSet ChangeSet `json:"change_set"` + ChangeSet *ChangeSet `json:"change_set"` Changes []byte `json:"changes"` } diff --git a/diode-server/sqlc.yaml b/diode-server/sqlc.yaml index 36d45791..34b30257 100644 --- a/diode-server/sqlc.yaml +++ b/diode-server/sqlc.yaml @@ -14,6 +14,7 @@ sql: - column: v_ingestion_logs_with_change_set.change_set go_type: type: ChangeSet + pointer: true - column: changes.data go_type: type: any