Skip to content

Commit

Permalink
fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
tomahock committed Jul 9, 2024
1 parent ece9d3e commit c458e5d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/Jobs/ProcessICNFNewFireData.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,12 @@ public function handle()
$incidentDb->save();
} else {
$incident = $incident[0];
$incident->statusCode = $statusCode;
$incident->status = $status;
$incident->statusColor = $statusColor;
$incident->save();
if($incident->status === 'Em curso' && $status === 'Em Resolução'){
$incident->statusCode = $statusCode;
$incident->status = $status;
$incident->statusColor = $statusColor;
$incident->save();
}
}
}
}
Expand Down

0 comments on commit c458e5d

Please sign in to comment.