From f366f8a730549f981885bba26e8db20bf859ec56 Mon Sep 17 00:00:00 2001 From: F3229579 Fernando Castilho Vargas Date: Mon, 30 Sep 2024 14:42:23 -0300 Subject: [PATCH] refactor: alterada forma de colocar o resolver de URL para Payload --- types/context.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/context.go b/types/context.go index 37f1693..1825506 100644 --- a/types/context.go +++ b/types/context.go @@ -278,14 +278,14 @@ func (c *Context) resolve(resolver string, param string) interface{} { func (c *Context) resolveImpl(resolver string, param string) interface{} { config := config.GetConfig() - url := fmt.Sprintf("%s/api/v1/resolve/%s", config.ResolverBridgeURL, resolver) + url := fmt.Sprintf("%s/api/v1/resolve/", config.ResolverBridgeURL) url = strings.ReplaceAll(url, "//api/v1", "/api/v1") input := resolveInputV1{ - // Resolver: resolver, - Context: c.GetEntries(), - Load: []string{param}, + Resolver: resolver, + Context: c.GetEntries(), + Load: []string{param}, } log.Tracef("Resolving with '%s': %v", url, input)