Skip to content

Commit

Permalink
fix: Return array of storage content (#113)
Browse files Browse the repository at this point in the history
Co-authored-by: alperencelik <[email protected]>
  • Loading branch information
alperencelik and alperencelik authored Feb 20, 2024
1 parent 7d43d0f commit e82d1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (s *Storage) downloadURL(ctx context.Context, content, filename, url string
return NewTask(upid, s.client), nil
}

func (s *Storage) GetContent(ctx context.Context) (content *StorageContent, err error) {
func (s *Storage) GetContent(ctx context.Context) (content []*StorageContent, err error) {
err = s.client.Get(ctx, fmt.Sprintf("/nodes/%s/storage/%s/content", s.Node, s.Name), &content)
return content, err
}
Expand Down

0 comments on commit e82d1ba

Please sign in to comment.