From a25c9e56dcb379b1983d31c26692a2395821f4c1 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 8 Apr 2026 14:27:38 +0800 Subject: [PATCH] bugfix --- discount/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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():