|
@@ -312,6 +312,8 @@ class AppointmentController extends Controller
|
|
|
$appointment = Appointment::where('uid', $uid)->first();
|
|
|
$data = [
|
|
|
'uid' => $uid,
|
|
|
+ 'currentLatestConfirmationDecisionEnum' => $appointment->latest_confirmation_decision_enum,
|
|
|
+ 'currentLatestConfirmationDecisionMemo' => $appointment->latest_confirmation_decision_memo,
|
|
|
'currentStatus' => $appointment->status,
|
|
|
'currentStatusMemo' => $appointment->status_memo,
|
|
|
'currentRawDate' => $appointment->raw_date,
|
|
@@ -319,18 +321,20 @@ class AppointmentController extends Controller
|
|
|
'currentRawEndTime' => $appointment->raw_end_time,
|
|
|
'currentTimezone' => $appointment->timezone,
|
|
|
];
|
|
|
- $response = $this->callJavaApi('/appointment/'.$action, $data);
|
|
|
-
|
|
|
+ $response = $this->callJavaApi('/appointment/' . $action, $data);
|
|
|
+
|
|
|
if(!$response['success']){
|
|
|
array_push($failedUids, $uid);
|
|
|
array_push($failedMessages, $response['message']);
|
|
|
}
|
|
|
- if(count($failedUids)){
|
|
|
- return $this->fail('Some appointment(s) failed to acknowledge. ' . $failedMessages[0]);
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
- return $this->pass();
|
|
|
+ if(count($failedUids)){
|
|
|
+ return $this->fail('Some appointment(s) failed to acknowledge. ' . $failedMessages[0]);
|
|
|
}
|
|
|
+
|
|
|
+ return $this->pass('Completed');
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|