From 5ba67bbb014586be817a4a899c03d3b522e9dc84 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..a3932af 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 = {