fix: add missing db argument to get_admin_context calls
The get_admin_context function signature changed to require db as the second argument, but many admin route handlers were still using the old signature (request, current_user). Updated all occurrences across modules: - core, catalog, dev_tools, inventory, customers, messaging - billing, tenancy, monitoring, analytics, orders, marketplace Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,7 +37,7 @@ async def admin_logs_page(
|
||||
"""
|
||||
return templates.TemplateResponse(
|
||||
"monitoring/admin/logs.html",
|
||||
get_admin_context(request, current_user),
|
||||
get_admin_context(request, db, current_user),
|
||||
)
|
||||
|
||||
|
||||
@@ -55,5 +55,5 @@ async def admin_platform_health(
|
||||
"""
|
||||
return templates.TemplateResponse(
|
||||
"monitoring/admin/platform-health.html",
|
||||
get_admin_context(request, current_user),
|
||||
get_admin_context(request, db, current_user),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user