mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-30 09:54:16 +00:00
WIP - Order steps & remaining APIs
This commit is contained in:
@@ -49,18 +49,11 @@ class FetchScheduleLogic extends AbstractControllerLogic
|
||||
*/
|
||||
public function logic(Request $request) : JsonResponse
|
||||
{
|
||||
try {
|
||||
$this->canFetchSchedule->passes();
|
||||
|
||||
$this->canFetchSchedule->passes();
|
||||
|
||||
$query = $this->fetchesSchedule->execute(['id' => $request->route('id')]);
|
||||
|
||||
return $this->resourceResponse(new ScheduleResource($query));
|
||||
|
||||
} catch (\Exception $exception){
|
||||
throw new ErrorException($exception->getMessage(), $exception->getCode());
|
||||
}
|
||||
$query = $this->fetchesSchedule->execute(['id' => $request->route('id')]);
|
||||
|
||||
return $this->resourceResponse(new ScheduleResource($query));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user