Add Owners in Diags
Build and Push Docker Image / build_and_push (push) Successful in 1m34s Details

This commit is contained in:
Nicolas CARON 2025-02-12 10:33:51 +01:00
parent 56bd7af62d
commit 64da61495c
1 changed files with 2 additions and 0 deletions

View File

@ -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
}