Fix real Biome bugs: inner declarations, dup keys, assign-in-expr, implicit any, cookie, a11y svg/keyboard, json
Local Build and Deploy / deploy (push) Successful in 51s

This commit is contained in:
openhands committed 2026-07-14 18:58:40 +02:00
1 parent 8d5c8ec96f
commit 59b63d6e70
19 files changed
+76 -44

No files matched your search

+4 -2
View File
@@ -9,11 +9,13 @@ import {
captureOrder,
creditsPerUnit,
isPayPalConfigured,
type CaptureResult,
} from "@/lib/services/paypal";
import {
authorizeTopupCapture,
claimTopupDelivery,
TopupCaptureError,
type AuthorizedTopup,
} from "@/lib/services/paypal-topup";
import { rcon } from "@/lib/services/rcon";
import { sendCurrency } from "@/lib/services/send-currency";
@@ -72,7 +74,7 @@ export async function POST(req: Request): Promise<Response> {
// The create endpoint records ownership before returning the approval URL.
// Do not let a signed-in user submit somebody else's approved order id.
let authorized;
let authorized: AuthorizedTopup;
try {
authorized = await authorizeTopupCapture(
userId,
@@ -138,7 +140,7 @@ export async function POST(req: Request): Promise<Response> {
}
}
let result;
let result: CaptureResult;
try {
result = await captureOrder(orderId);
} catch (e) {