From d07ba9fbdbd64c980acfad59175b57ba3db78da1 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 21 Mar 2026 16:06:12 +0800 Subject: [PATCH] bugfix --- wwwroot/get_all_roles.dspy | 2 +- wwwroot/get_normal_roles.dspy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/get_all_roles.dspy b/wwwroot/get_all_roles.dspy index dcdd6bc..43cc609 100644 --- a/wwwroot/get_all_roles.dspy +++ b/wwwroot/get_all_roles.dspy @@ -1,5 +1,5 @@ async with get_sor_context(request._run_ns, 'rbac') as sor: - recs = sor.R('role', {}) + recs = await sor.R('role', {}) d = [] for r in recs: if r.id in ['anonymous', 'any', 'logined']: diff --git a/wwwroot/get_normal_roles.dspy b/wwwroot/get_normal_roles.dspy index 81ddab4..ef3065b 100644 --- a/wwwroot/get_normal_roles.dspy +++ b/wwwroot/get_normal_roles.dspy @@ -1,5 +1,5 @@ async with get_sor_context(request._run_ns, 'rbac') as sor: - recs = sor.R('role', {}) + recs = await sor.R('role', {}) d = [] for r in recs: if r.id in ['anonymous', 'any', 'logined']: