Skip to content

Commit 4c9cfef

Browse files
committed
fix: bucket name consistency issue
1 parent 621c481 commit 4c9cfef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Bucket.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ public function createBucket(string $name, Credentials $credentials): self
111111

112112
try {
113113
$client->createBucket([
114-
'Bucket' => $name,
114+
'Bucket' => $this->bucketName,
115115
]);
116116

117117
// Update Tenant
118-
$this->tenant->tenant_bucket = $name;
118+
$this->tenant->tenant_bucket = $this->bucketName;
119119
$this->tenant->save();
120120
} catch (AwsException $e) {
121121
$this->e = $e;
@@ -155,7 +155,7 @@ public function deleteBucket(string $name, Credentials $credentials): self
155155
]);
156156
} catch (AwsException $e) {
157157
$this->e = $e;
158-
throw_if(config('app.debug'), $e);
158+
throw_if(config('app.debug', false), $e);
159159
Log::critical($this->getErrorMessage());
160160
}
161161

0 commit comments

Comments
 (0)