1
0
forked from poc/pds

Updated pump testing result post api function success and failure response description

This commit is contained in:
dhanabalan
2026-08-28 14:18:54 +05:30
parent ce0bfa72ca
commit 02a435e93d

View File

@@ -2333,7 +2333,7 @@ class TestingPanelController extends Controller
if ($updatedRows == 0) {
return response()->json([
'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);
} else {
for ($i = $cnt; $i <= 10; $i++) {
@@ -2342,7 +2342,7 @@ class TestingPanelController extends Controller
return response()->json([
'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);
}
} else {
@@ -2396,12 +2396,12 @@ class TestingPanelController extends Controller
if ($createdRows == 0) {
return response()->json([
'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);
} else {
return response()->json([
'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);
}
}