Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit 5d61376

Browse files
authored
Merge pull request #12 from workos/bug/useCorrectArgToGetContextForFgaQueryCommand
Use the correct arg to get the specified context in the `fga query` command
2 parents 0f089f5 + c52591e commit 5d61376

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/cmd/fga.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,9 @@ var queryCmd = &cobra.Command{
559559
}
560560
var policyContext map[string]interface{}
561561
if len(args) > 1 {
562-
err := json.Unmarshal([]byte(args[3]), &policyContext)
562+
err := json.Unmarshal([]byte(args[1]), &policyContext)
563563
if err != nil {
564-
return errors.Errorf("invalid context: %s", args[3])
564+
return errors.Errorf("invalid context: %s", args[1])
565565
}
566566
}
567567

0 commit comments

Comments
 (0)