diff --git a/discount/init.py b/discount/init.py index aebb8b1..4f6cd8e 100644 --- a/discount/init.py +++ b/discount/init.py @@ -133,7 +133,7 @@ where resellerid = ${resellerid}$ async def get_customer_discount(resellerid, customerid): env = ServerEnv() async with get_sor_context(env, 'discount') as sor: - return sor_get_customer_discount(sor, resellerid, customerid) + return await sor_get_customer_discount(sor, resellerid, customerid) return 1 def load_discount():