1
This commit is contained in:
@@ -1081,8 +1081,8 @@ async def update_system_config(
|
||||
config = result.scalar_one_or_none()
|
||||
if not config:
|
||||
raise HTTPException(status_code=404, detail="配置不存在")
|
||||
config.value = req.value
|
||||
await db.flush()
|
||||
config.value = str(req.value)
|
||||
await db.commit()
|
||||
return config
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user