mirror of
https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
synced 2024-11-21 22:08:48 +00:00
fixes
This commit is contained in:
parent
560b18b5c4
commit
07f1e64553
@ -334,7 +334,7 @@ async def leasing_v1_lessor_lease(request: Request):
|
||||
|
||||
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')
|
||||
|
||||
response = {
|
||||
|
Loading…
Reference in New Issue
Block a user