Updated storeLaserStatus api to accept on stopped status if expectedTime is '0'
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s

This commit is contained in:
dhanabalan
2026-09-25 09:14:52 +05:30
parent c1950f97bb
commit f0980a6396

View File

@@ -342,7 +342,7 @@ class CharacteristicsController extends Controller
$charField = 'NIL';
}
if ($expectedTime == null || $expectedTime == '' || $expectedTime == '0' || ! $expectedTime) {
if ($expectedTime == null || $expectedTime == '' || ($markedStatus == 'Marked' && $expectedTime == '0')) { // || ! $expectedTime
return response()->json([
'status_code' => 'ERROR',
'status_description' => "Expected time can't be empty or zero!",