Parcourir la source

Revert "Development 3.x"

3.x
Andrew Wallo il y a 3 mois
Parent
révision
3af2c622d2
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 1 ajouts et 5 suppressions
  1. 1
    5
      app/Http/Middleware/ConfigureCurrentCompany.php

+ 1
- 5
app/Http/Middleware/ConfigureCurrentCompany.php Voir le fichier

@@ -22,11 +22,7 @@ class ConfigureCurrentCompany
22 22
         $company = Filament::getTenant();
23 23
 
24 24
         if ($company) {
25
-            $currentCompanyId = session('current_company_id');
26
-
27
-            if ($currentCompanyId !== $company->id) {
28
-                CompanyConfigured::dispatch($company);
29
-            }
25
+            CompanyConfigured::dispatch($company);
30 26
         }
31 27
 
32 28
         return $next($request);

Chargement…
Annuler
Enregistrer