H Vs пре 11 часа
родитељ
комит
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)


Loading…
Откажи
Сачувај