Add Owners in Diags
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m34s
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m34s
This commit is contained in:
@@ -21,6 +21,7 @@ func (e Diag) ToStorageType() storage.Diag {
|
|||||||
Data: map[string]any{},
|
Data: map[string]any{},
|
||||||
Deleted: e.Deleted,
|
Deleted: e.Deleted,
|
||||||
Diagdate: e.Diagdate.AsTime(),
|
Diagdate: e.Diagdate.AsTime(),
|
||||||
|
Owners: append([]string{}, e.Owners...),
|
||||||
}
|
}
|
||||||
|
|
||||||
for k, d := range e.Data.GetFields() {
|
for k, d := range e.Data.GetFields() {
|
||||||
@@ -59,6 +60,7 @@ func DiagFromStorageType(diag *storage.Diag) (*Diag, error) {
|
|||||||
Data: data,
|
Data: data,
|
||||||
Deleted: diag.Deleted,
|
Deleted: diag.Deleted,
|
||||||
Diagdate: timestamppb.New(diag.Diagdate),
|
Diagdate: timestamppb.New(diag.Diagdate),
|
||||||
|
Owners: diag.Owners,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user