Apply patch [skip ci]
This commit is contained in:
parent
432faeb4ac
commit
67cad2a3bb
@ -83,6 +83,8 @@ export const handler = define.handlers({
|
||||
}
|
||||
|
||||
const approvedLease = result[0];
|
||||
|
||||
if (lease.tenant_id) {
|
||||
const tenant = await getUserById(lease.tenant_id);
|
||||
const landlord = await getUserById(user_id);
|
||||
const property = lease.property_id
|
||||
@ -98,6 +100,7 @@ export const handler = define.handlers({
|
||||
landlord_name: landlord?.name || "Landlord",
|
||||
monthly_rent: property?.monthly_rent || lease.rent,
|
||||
});
|
||||
}
|
||||
|
||||
return new Response(
|
||||
JSON.stringify({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user