fix: ApiResponse::handle() 호출 패턴 수정 (callable 사용)
This commit is contained in:
@@ -38,15 +38,15 @@ public function summary(Request $request): JsonResponse
|
||||
$year = $request->query('year') ? (int) $request->query('year') : null;
|
||||
$quarter = $request->query('quarter') ? (int) $request->query('quarter') : null;
|
||||
|
||||
$data = $this->welfareService->getSummary(
|
||||
$limitType,
|
||||
$calculationType,
|
||||
$fixedAmountPerMonth,
|
||||
$ratio,
|
||||
$year,
|
||||
$quarter
|
||||
);
|
||||
|
||||
return ApiResponse::handle($data, __('message.fetched'));
|
||||
return ApiResponse::handle(function () use ($limitType, $calculationType, $fixedAmountPerMonth, $ratio, $year, $quarter) {
|
||||
return $this->welfareService->getSummary(
|
||||
$limitType,
|
||||
$calculationType,
|
||||
$fixedAmountPerMonth,
|
||||
$ratio,
|
||||
$year,
|
||||
$quarter
|
||||
);
|
||||
}, __('message.fetched'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user