Skip to content

Commit

Permalink
Fixed: Delete Job fails
Browse files Browse the repository at this point in the history
Job failed when a tenant without a bucket was deleted.

`Vidwan\TenantBuckets\Bucket::deleteBucket()` now return a Bucket Object
  • Loading branch information
secrethash committed May 21, 2022
1 parent 28198f1 commit 8f51563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function deleteTenantBucket(): self
{
$bucketName = $this->tenant->tenant_bucket;

return $bucketName ? $this->deleteBucket($bucketName, $this->credentials) : false;
return $bucketName ? $this->deleteBucket($bucketName, $this->credentials) : $this;
}

/**
Expand Down

0 comments on commit 8f51563

Please sign in to comment.