mirror of
https://github.com/aljazceru/enclava.git
synced 2025-12-18 07:54:29 +01:00
zammad fixes
This commit is contained in:
@@ -213,9 +213,15 @@ async def update_configuration(
|
||||
if not zammad_module:
|
||||
raise HTTPException(status_code=503, detail="Zammad module not available")
|
||||
|
||||
# For updates, pass the existing api_token if not provided in the request
|
||||
config_data = config_request.dict()
|
||||
if not config_data.get("api_token"):
|
||||
# Use existing encrypted token for the new config
|
||||
config_data["existing_encrypted_token"] = existing_config.api_token_encrypted
|
||||
|
||||
request_data = {
|
||||
"action": "save_configuration",
|
||||
"configuration": config_request.dict()
|
||||
"action": "save_configuration",
|
||||
"configuration": config_data
|
||||
}
|
||||
|
||||
context = {
|
||||
|
||||
Reference in New Issue
Block a user