Skip to content

Commit

Permalink
fix bad code
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Dec 12, 2023
1 parent e46dc10 commit aee8b12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/gosky/bgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,10 @@ var bgsResetRepo = &cli.Command{
var bgsSetTrustedDomains = &cli.Command{
Name: "set-trusted-domain",
Action: func(cctx *cli.Context) error {
url := cctx.String("bgs") + "/admin/repo/reset"
url := cctx.String("bgs") + "/admin/pds/addTrustedDomain"

did := cctx.Args().First()
url += fmt.Sprintf("?did=%s", did)
domain := cctx.Args().First()
url += fmt.Sprintf("?domain=%s", domain)

req, err := http.NewRequest("POST", url, nil)
if err != nil {
Expand Down

0 comments on commit aee8b12

Please sign in to comment.