fix: export struct and add json tags
This commit is contained in:
parent
aacdd48428
commit
aefe9efaaa
|
@ -857,8 +857,8 @@ func (s *S5API) getManifestCids(cid *encoding.CID) ([]*encoding.CID, error) {
|
||||||
|
|
||||||
func (s *S5API) accountPinManifest(jc jape.Context, userId uint, cid *encoding.CID) {
|
func (s *S5API) accountPinManifest(jc jape.Context, userId uint, cid *encoding.CID) {
|
||||||
type pinResult struct {
|
type pinResult struct {
|
||||||
success bool
|
Success bool `json:"success"`
|
||||||
error error
|
Error error `json:"error,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type pinQueueResult struct {
|
type pinQueueResult struct {
|
||||||
|
@ -919,8 +919,8 @@ func (s *S5API) accountPinManifest(jc jape.Context, userId uint, cid *encoding.C
|
||||||
}
|
}
|
||||||
|
|
||||||
results[b64] = pinResult{
|
results[b64] = pinResult{
|
||||||
success: ret.success,
|
Success: ret.success,
|
||||||
error: ret.error,
|
Error: ret.error,
|
||||||
}
|
}
|
||||||
|
|
||||||
received++
|
received++
|
||||||
|
|
Loading…
Reference in New Issue