fix: export struct and add json tags

This commit is contained in:
Derrick Hammer 2024-03-01 10:30:08 -05:00
parent aacdd48428
commit aefe9efaaa
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 4 deletions

View File

@ -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) {
type pinResult struct {
success bool
error error
Success bool `json:"success"`
Error error `json:"error,omitempty"`
}
type pinQueueResult struct {
@ -919,8 +919,8 @@ func (s *S5API) accountPinManifest(jc jape.Context, userId uint, cid *encoding.C
}
results[b64] = pinResult{
success: ret.success,
error: ret.error,
Success: ret.success,
Error: ret.error,
}
received++