Skip to content

Commit 635c617

Browse files
authored
Merge pull request #84 from goboolean/feat/influxdb
fix: wip
2 parents edbf3b9 + 18c3023 commit 635c617

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

internal/influxdb/client.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ func (c *Client) Ping(ctx context.Context) error {
6060

6161
func (c *Client) createBucket(ctx context.Context, bucket string) error {
6262
bucketsAPI := c.client.BucketsAPI()
63-
_, err := bucketsAPI.CreateBucketWithName(ctx, &domain.Organization{Id: &c.org}, bucket)
63+
_, err := bucketsAPI.CreateBucket(ctx, &domain.Bucket{
64+
Name: bucket,
65+
OrgID: &c.org,
66+
})
6467
if err != nil {
6568
return fmt.Errorf("failed to create bucket %s: %w", bucket, err)
6669
}

0 commit comments

Comments
 (0)