Kaynağa Gözat

Merge pull request #190 from andrewdwallo/development-3.x

Development 3.x
3.x
Andrew Wallo 3 ay önce
ebeveyn
işleme
204492174f
No account linked to committer's email address

+ 5
- 1
app/Http/Middleware/ConfigureCurrentCompany.php Dosyayı Görüntüle

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

Loading…
İptal
Kaydet