Skip to content

Commit 4f85f9a

Browse files
only get current buckets in GET /buckets
1 parent 7688856 commit 4f85f9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/rest-client/buckets.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ type BucketsList struct {
4444
}
4545

4646
func (fb *FBClient) GetBuckets() *BucketsList {
47-
uri := "/buckets?destroyed=false"
47+
uri := "/buckets"
4848
result := new(BucketsList)
4949
res, _ := fb.RestClient.R().
5050
SetResult(&result).
51+
SetQueryParam("destroyed", "false").
5152
Get(uri)
5253
if res.StatusCode() == 401 {
5354
fb.RefreshSession()

0 commit comments

Comments
 (0)