diff --git a/app/Console/Commands/ImportGesconFullPipeline.php b/app/Console/Commands/ImportGesconFullPipeline.php index ff8c511..0668aba 100755 --- a/app/Console/Commands/ImportGesconFullPipeline.php +++ b/app/Console/Commands/ImportGesconFullPipeline.php @@ -435,7 +435,7 @@ public function handle(): int $this->purgeAuthoritativeLegacyReplica($steps); } - if ($this->option('stabile') === '0021' && ! $dry && in_array('unita', $steps, true)) { + if ($this->option('stabile') === '0021' && ! $this->option('update-only') && $this->option('reset-temp') && ! $dry && in_array('unita', $steps, true)) { $this->line('⚠️ DIRETTIVA DI LIVELLO 3: Azzeramento dati Stabile 0021'); $stabileId = 4; $unitaIds = DB::table('unita_immobiliari')->where('stabile_id', $stabileId)->pluck('id')->toArray();