Updated pump testing result post api function success and failure response description
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 21s
Laravel Pint / pint (pull_request) Successful in 5m36s
Laravel Larastan / larastan (pull_request) Failing after 9m10s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 21s
Laravel Pint / pint (pull_request) Successful in 5m36s
Laravel Larastan / larastan (pull_request) Failing after 9m10s
This commit is contained in:
@@ -2333,7 +2333,7 @@ class TestingPanelController extends Controller
|
|||||||
if ($updatedRows == 0) {
|
if ($updatedRows == 0) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status_code' => 'ERROR',
|
'status_code' => 'ERROR',
|
||||||
'status_description' => "Failed to update exist pump testing entries for the pump serial number '{$pumpSerial}'.",
|
'status_description' => "Failed to update exist pump testing results for the pump serial number '{$pumpSerial}'.",
|
||||||
], 404);
|
], 404);
|
||||||
} else {
|
} else {
|
||||||
for ($i = $cnt; $i <= 10; $i++) {
|
for ($i = $cnt; $i <= 10; $i++) {
|
||||||
@@ -2342,7 +2342,7 @@ class TestingPanelController extends Controller
|
|||||||
|
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status_code' => 'SUCCESS',
|
'status_code' => 'SUCCESS',
|
||||||
'status_description' => "Successfully updated exist pump testing entries for the pump serial number '{$pumpSerial}'.",
|
'status_description' => "Successfully updated exist pump testing results for the pump serial number '{$pumpSerial}'.",
|
||||||
], 200);
|
], 200);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -2396,12 +2396,12 @@ class TestingPanelController extends Controller
|
|||||||
if ($createdRows == 0) {
|
if ($createdRows == 0) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status_code' => 'ERROR',
|
'status_code' => 'ERROR',
|
||||||
'status_description' => "Failed to create new pump testing entries for the pump serial number '{$pumpSerial}'.",
|
'status_description' => "Failed to create new pump testing results for the pump serial number '{$pumpSerial}'.",
|
||||||
], 404);
|
], 404);
|
||||||
} else {
|
} else {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status_code' => 'SUCCESS',
|
'status_code' => 'SUCCESS',
|
||||||
'status_description' => "Successfully created new pump testing entries for the pump serial number '{$pumpSerial}'.",
|
'status_description' => "Successfully created new pump testing results for the pump serial number '{$pumpSerial}'.",
|
||||||
], 200);
|
], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user