Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit f366f8a

Browse files
committed
refactor: alterada forma de colocar o resolver de URL para Payload
1 parent 545948a commit f366f8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

types/context.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,14 @@ func (c *Context) resolve(resolver string, param string) interface{} {
278278
func (c *Context) resolveImpl(resolver string, param string) interface{} {
279279
config := config.GetConfig()
280280

281-
url := fmt.Sprintf("%s/api/v1/resolve/%s", config.ResolverBridgeURL, resolver)
281+
url := fmt.Sprintf("%s/api/v1/resolve/", config.ResolverBridgeURL)
282282

283283
url = strings.ReplaceAll(url, "//api/v1", "/api/v1")
284284

285285
input := resolveInputV1{
286-
// Resolver: resolver,
287-
Context: c.GetEntries(),
288-
Load: []string{param},
286+
Resolver: resolver,
287+
Context: c.GetEntries(),
288+
Load: []string{param},
289289
}
290290

291291
log.Tracef("Resolving with '%s': %v", url, input)

0 commit comments

Comments
 (0)