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']: