diff --git a/internal/pkg/api/handleCheckin.go b/internal/pkg/api/handleCheckin.go index 26820d487..bef7f1de7 100644 --- a/internal/pkg/api/handleCheckin.go +++ b/internal/pkg/api/handleCheckin.go @@ -452,13 +452,8 @@ func (ct *CheckinT) processUpgradeDetails(ctx context.Context, agent *model.Agen } vSpan.End() - // marshal and update agent doc with details - p, err := json.Marshal(details) - if err != nil { - return err - } doc := bulk.UpdateFields{ - dl.FieldUpgradeDetails: p, + dl.FieldUpgradeDetails: details, } body, err := doc.Marshal() if err != nil {