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
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
This commit is contained in:
@@ -342,7 +342,7 @@ class CharacteristicsController extends Controller
|
|||||||
$charField = 'NIL';
|
$charField = 'NIL';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($expectedTime == null || $expectedTime == '' || $expectedTime == '0' || ! $expectedTime) {
|
if ($expectedTime == null || $expectedTime == '' || ($markedStatus == 'Marked' && $expectedTime == '0')) { // || ! $expectedTime
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status_code' => 'ERROR',
|
'status_code' => 'ERROR',
|
||||||
'status_description' => "Expected time can't be empty or zero!",
|
'status_description' => "Expected time can't be empty or zero!",
|
||||||
|
|||||||
Reference in New Issue
Block a user