Skip to content

Commit

Permalink
fix: bucket name consistency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
secrethash committed Dec 11, 2024
1 parent d25a575 commit 1951dfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Bucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ public function createBucket(string $name, Credentials $credentials): self

try {
$client->createBucket([
'Bucket' => $name,
'Bucket' => $this->bucketName,
]);

// Update Tenant
$this->tenant->tenant_bucket = $name;
$this->tenant->tenant_bucket = $this->bucketName;
$this->tenant->save();
} catch (AwsException $e) {
$this->e = $e;
Expand Down Expand Up @@ -155,7 +155,7 @@ public function deleteBucket(string $name, Credentials $credentials): self
]);
} catch (AwsException $e) {
$this->e = $e;
throw_if(config('app.debug'), $e);
throw_if(config('app.debug', false), $e);
Log::critical($this->getErrorMessage());
}

Expand Down

0 comments on commit 1951dfa

Please sign in to comment.