]> _ Git - fluidbook-toolbox.git/commitdiff
#7973
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 4 Feb 2026 17:22:27 +0000 (18:22 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 4 Feb 2026 17:22:27 +0000 (18:22 +0100)
.env.prod
app/Models/FluidbookCollection.php

index f1cdbffb185aa03ce53c38da5e4525b856306623..d39cab2fad14ab3a26971e6a9417cb54e6f55e06 100644 (file)
--- a/.env.prod
+++ b/.env.prod
@@ -3,8 +3,8 @@ APP_ENV=production
 APP_KEY=base64:DRIdIwSEuQNkxuUTfyyRyssizosh3D9QHWTnobrW44U=
 
 APP_DEBUG=true
-DEBUGBAR_ENABLED=true
-DEBUGBAR_OPEN_STORAGE=true
+DEBUGBAR_ENABLED=false
+DEBUGBAR_OPEN_STORAGE=false
 
 APP_URL=https://toolbox.fluidbook.com
 HEADER_COLOR="#263340"
index 085b4dfe3c4ca1feeeb8aa6708d8f3b4d4b5466d..8adee6e84d0d3d1be1264c857385f82550bbfb20 100644 (file)
@@ -332,7 +332,11 @@ class FluidbookCollection extends ToolboxStatusModel
         ];
 
         $client = $this->_connectToSearchServer();
-        $client->collections['fluidbooks']->delete();
+        try {
+            $client->collections['fluidbooks']->delete();
+        } catch (\Exception $exception) {
+
+        }
         $client->collections->create($booksSchema);
         $client->collections["fluidbooks"]->documents->import($texts, ['action' => 'create']);
     }