From 64da61495c9d1fc17e095980c4ab5df9f4635ac6 Mon Sep 17 00:00:00 2001 From: Nicolas CARON Date: Wed, 12 Feb 2025 10:33:51 +0100 Subject: [PATCH] Add Owners in Diags --- grpcapi/diag.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grpcapi/diag.go b/grpcapi/diag.go index 5ed7978..830bf04 100644 --- a/grpcapi/diag.go +++ b/grpcapi/diag.go @@ -21,6 +21,7 @@ func (e Diag) ToStorageType() storage.Diag { Data: map[string]any{}, Deleted: e.Deleted, Diagdate: e.Diagdate.AsTime(), + Owners: append([]string{}, e.Owners...), } for k, d := range e.Data.GetFields() { @@ -59,6 +60,7 @@ func DiagFromStorageType(diag *storage.Diag) (*Diag, error) { Data: data, Deleted: diag.Deleted, Diagdate: timestamppb.New(diag.Diagdate), + Owners: diag.Owners, }, nil }