From e1a351ebcc2726f1ed29a7ecc3ec7b295e814e2f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 7 Sep 2026 11:41:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20sync=5Fuser=20=E6=BC=8F=20await=20check?= =?UTF-8?q?=5Fduserid=5Fexists=20=E8=87=B4=E5=8D=8F=E7=A8=8B=E6=81=92?= =?UTF-8?q?=E7=9C=9F=E3=80=81=E5=90=8C=E6=AD=A5=E6=B0=B8=E8=BF=9C=E8=AF=AF?= =?UTF-8?q?=E8=BF=94=20-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dapi/dapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dapi/dapi.py b/dapi/dapi.py index 790f396..16e7453 100644 --- a/dapi/dapi.py +++ b/dapi/dapi.py @@ -330,7 +330,7 @@ async def sync_user(request, params_kw, *args, **kw): return return_error(-2) u['orgid'] = o['id'] u['roles'] = roles - exists = check_duserid_exists(sor, dappid, duserid) + exists = await check_duserid_exists(sor, dappid, duserid) if exists: return return_error(-1) userid = await add_user(sor, u)