This commit is contained in:
2026-06-29 11:04:09 +08:00
parent d03f6b4368
commit 696172108b
11 changed files with 30 additions and 48 deletions
+1 -2
View File
@@ -1076,8 +1076,7 @@ async def list_system_configs(
admin: User = Depends(get_admin_user),
db: AsyncSession = Depends(get_db),
):
deprecated_keys = {"user_agreement_url", "privacy_policy_url"}
result = await db.execute(select(SystemConfig).where(~SystemConfig.key.in_(deprecated_keys)))
result = await db.execute(select(SystemConfig))
return result.scalars().all()