From e82d1ba04d398352fe3f6111a5d64977af5d5f36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alp=20Eren=20=C3=87elik?= <80721144+alperencelik@users.noreply.github.com> Date: Tue, 20 Feb 2024 18:33:55 +0300 Subject: [PATCH] fix: Return array of storage content (#113) Co-authored-by: alperencelik --- storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage.go b/storage.go index 0d2f6bb..f733afd 100644 --- a/storage.go +++ b/storage.go @@ -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 }