From 07f1e645531ac908a60f07bf51f7c29ca27b873e Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Tue, 27 Dec 2022 20:05:55 +0100 Subject: [PATCH] fixes --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 84c5968..b35db7d 100644 --- a/app/main.py +++ b/app/main.py @@ -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 = {