H Vs 11 часов назад
Родитель
Сommit
fdfe998d99
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      app/endpoints/config_endpoint.py

+ 2
- 2
app/endpoints/config_endpoint.py Просмотреть файл

@@ -83,8 +83,8 @@ async def save_config(request: Request, body: SaveConfigRequest):
except ValidationError as e:
return {'code': 407, 'message': e.errors().__str__()}
await request.app.state.gewe_service.save_wxchat_config_async(wxid, data)
return {'wxid': wxid, 'config': data}
await request.app.state.gewe_service.save_wxchat_config_async(wxid, validated_config.model_dump())
return {'wxid': wxid, 'config': validated_config.model_dump()}


@config_router.post("/global/getconfig",response_model=None)


Загрузка…
Отмена
Сохранить