From 883a5a5186e89ecdf40984094852549e8e5d3707 Mon Sep 17 00:00:00 2001 From: "open-swe-dev-andrinoid[bot]" Date: Thu, 22 Jan 2026 05:50:47 +0000 Subject: [PATCH] Apply patch [skip ci] --- routes/api/update/lease_accept.ts | 15 +++++++++------ services/leaseService.ts | 3 --- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/routes/api/update/lease_accept.ts b/routes/api/update/lease_accept.ts index c950938..356e9a9 100644 --- a/routes/api/update/lease_accept.ts +++ b/routes/api/update/lease_accept.ts @@ -27,7 +27,8 @@ export const handler = define.handlers({ } } - const lease_id = (data.lease_id as string) || (data["lease_id"] as string); + const lease_id = (data.lease_id as string) || + (data["lease_id"] as string); if (!lease_id) { return new Response(JSON.stringify({ error: "lease_id is required" }), { status: 400, @@ -36,10 +37,13 @@ export const handler = define.handlers({ } const result = await signLease(lease_id, user_id as string); - return new Response(JSON.stringify({ success: true, lease: result?.[0] || null }), { - status: 200, - headers: { "Content-Type": "application/json" }, - }); + return new Response( + JSON.stringify({ success: true, lease: result?.[0] || null }), + { + status: 200, + headers: { "Content-Type": "application/json" }, + }, + ); } catch (err) { return new Response(JSON.stringify({ error: String(err) }), { status: 500, @@ -48,4 +52,3 @@ export const handler = define.handlers({ } }, }); - diff --git a/services/leaseService.ts b/services/leaseService.ts index 6f42071..2ddd6ed 100644 --- a/services/leaseService.ts +++ b/services/leaseService.ts @@ -247,6 +247,3 @@ export async function getLeaseStatsByOwner(owner_id: string) { without_tenant: allLeases.filter((l) => l.tenant_id === null).length, }; } - - -