Update pin.go

This commit was moved from ipfs/go-ipfs-http-client@31b4e60d96
This commit is contained in:
Joel Gustafson 2019-12-07 01:08:48 -05:00 committed by GitHub
parent c71a840bb8
commit 8f9306304e

View File

@ -86,7 +86,7 @@ func (api *PinAPI) Update(ctx context.Context, from path.Path, to path.Path, opt
return err
}
return api.core().Request("pin/update").
return api.core().Request("pin/update", from.String(), to.String()).
Option("unpin", options.Unpin).Exec(ctx, nil)
}