This commit is contained in:
Oscar Krause 2022-12-27 20:05:55 +01:00
parent 560b18b5c4
commit 07f1e64553

View File

@ -334,7 +334,7 @@ async def leasing_v1_lessor_lease(request: Request):
origin_ref = token['origin_ref'] origin_ref = token['origin_ref']
active_lease_list = list(map(lambda x: x['lease_ref'], db['lease'].find(origin_ref=origin_ref))) active_lease_list = list(map(lambda x: x.lease_ref, Lease.find_by_origin_ref(db, origin_ref)))
logging.info(f'> [ leases ]: {origin_ref}: found {len(active_lease_list)} active leases') logging.info(f'> [ leases ]: {origin_ref}: found {len(active_lease_list)} active leases')
response = { response = {