change some action

This commit is contained in:
2025-09-23 16:08:49 +03:30
parent a735080dfd
commit 496d944689
3 changed files with 4 additions and 9 deletions

View File

@@ -57,7 +57,8 @@ class ControlUnitController extends Controller
$mission->update([
'state_id' => $state,
'state_name' => MissionStates::name($state),
'finish_time' => now()
'finish_time' => now(),
'mission_duration' => strtotime(now()) - strtotime($mission->start_time),
]);
});