fix dashboard and apis
PHP Tests / php-tests (push) Failing after 9m1s

This commit is contained in:
Nyan Lin Paing
2026-08-16 23:50:39 +07:00
parent 60413bdebf
commit 8d74ac74cd
26 changed files with 638 additions and 55 deletions
@@ -18,10 +18,14 @@ class RefundController extends Controller
public function refund(RefundBookingRequest $request, Booking $booking): JsonResponse
{
Gate::authorize('refund', $booking);
$validated = $request->validated();
$openid = $request->attributes->get('fastapi_openid');
if ($openid === null) {
Gate::authorize('refund', $booking);
}
$refund = $this->refundBookingAction->handle(
$booking,
(string) $validated['amount'],