fix scadule for getting price
This commit is contained in:
@@ -2054,20 +2054,27 @@ class SingleOrderController extends Controller
|
||||
|
||||
public function pendingColleague()
|
||||
{
|
||||
$order = app(ColleagueOrderCallbackService::class)
|
||||
->pendingForCustomer((int) auth('customer')->id());
|
||||
$service = app(ColleagueOrderCallbackService::class);
|
||||
$order = $service->pendingForCustomer((int) auth('customer')->id());
|
||||
if ($order) {
|
||||
$order = $service->refreshIfDue($order);
|
||||
}
|
||||
|
||||
return response()->json(app(ColleagueOrderCallbackService::class)->publicStatusPayload($order));
|
||||
return response()->json($service->publicStatusPayload($order));
|
||||
}
|
||||
|
||||
public function colleagueStatus(int $id)
|
||||
{
|
||||
$service = app(ColleagueOrderCallbackService::class);
|
||||
$order = Order::query()
|
||||
->where('id', $id)
|
||||
->where('customer_id', auth('customer')->id())
|
||||
->first();
|
||||
if ($order) {
|
||||
$order = $service->refreshIfDue($order);
|
||||
}
|
||||
|
||||
return response()->json(app(ColleagueOrderCallbackService::class)->publicStatusPayload($order));
|
||||
return response()->json($service->publicStatusPayload($order));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user