Ver código fonte

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

Revert #190
3.x
Andrew Wallo 3 meses atrás
pai
commit
90bcdf0f77
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 5 exclusões
  1. 1
    5
      app/Http/Middleware/ConfigureCurrentCompany.php

+ 1
- 5
app/Http/Middleware/ConfigureCurrentCompany.php Ver arquivo

@@ -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);

Carregando…
Cancelar
Salvar