Fix canonical tags not getting assigned in the api resource. (#2144)

This commit is contained in:
Todd authored and GitHub committed 2022-06-06 16:50:22 -07:00
1 parent aa0afd325a
commit 0f7e1ee7fa
4 files changed
+78 -15

No files matched your search

@@ -395,7 +395,7 @@ func toProto(ctx context.Context, in *servers.Worker, opt ...handlers.Option) (*
}
if outputFields.Has(globals.CanonicalTagsField) && len(in.CanonicalTags()) > 0 {
var err error
out.Tags, err = tagsToMapProto(in.CanonicalTags())
out.CanonicalTags, err = tagsToMapProto(in.CanonicalTags())
if err != nil {
return nil, errors.Wrap(ctx, err, op, errors.WithMsg("error preparing canonical tags proto"))
}