From 1951dfa0f1bd2912b194cacb32c420f51999477c Mon Sep 17 00:00:00 2001 From: Shashwat Mishra <11258035+secrethash@users.noreply.github.com> Date: Wed, 11 Dec 2024 12:57:37 +0530 Subject: [PATCH] fix: bucket name consistency issue --- src/Bucket.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bucket.php b/src/Bucket.php index d4d3ac4..4490929 100644 --- a/src/Bucket.php +++ b/src/Bucket.php @@ -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; @@ -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()); }