From 6727b176bce7a24e43b56e7af9e75920e5605e6d Mon Sep 17 00:00:00 2001 From: Luke Tucker <64618+ltucker@users.noreply.github.com> Date: Mon, 23 Dec 2024 14:16:36 -0500 Subject: [PATCH] Update diode-server/gen/dbstore/postgres/adapters.go Co-authored-by: Michal Fiedorowicz --- diode-server/gen/dbstore/postgres/adapters.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diode-server/gen/dbstore/postgres/adapters.go b/diode-server/gen/dbstore/postgres/adapters.go index 12ba127..647186d 100644 --- a/diode-server/gen/dbstore/postgres/adapters.go +++ b/diode-server/gen/dbstore/postgres/adapters.go @@ -9,8 +9,8 @@ import ( "github.com/netboxlabs/diode/diode-server/gen/diode/v1/reconcilerpb" ) -// ToProtobuf converts sqlc structure to analogous protobuf -func (log IngestionLog) ToProtobuf() (*reconcilerpb.IngestionLog, error) { +// ToProto converts sqlc structure to analogous protobuf +func (log IngestionLog) ToProto() (*reconcilerpb.IngestionLog, error) { entity := &diodepb.Entity{} if err := protojson.Unmarshal(log.Entity, entity); err != nil { return nil, fmt.Errorf("failed to unmarshal entity: %w", err)