From 699869ca3eced27c4916e4c894e5988becf64927 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 15 Jan 2024 14:36:06 -0500 Subject: [PATCH] fix: wrong payload to bucket create --- storage/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/storage.go b/storage/storage.go index 6910f4c..c6a3bee 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -90,7 +90,7 @@ func (s *StorageServiceImpl) createBucketIfNotExists(bucket string) error { } else { resp, err := s.httpApi.R(). SetBody(map[string]string{ - "bucket": bucket, + "name": bucket, }). Post("/api/bus/buckets") if err != nil {