v8.1.7: Remove unnecessary parameter from `upload_ssl_cert` function.

The `cert_type` parameter was unused in the `upload_ssl_cert` function and has been removed to simplify the function call. This change reduces redundancy and improves code clarity.
pull/418/head
Aidaho 2025-04-10 10:55:43 +03:00
parent 61a7c342a8
commit 60044a8cff
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ def get_cert(server_id: int, cert_id: EscapedString):
@validate(body=SSLCertUploadRequest)
def upload_cert(body: SSLCertUploadRequest):
try:
data = add_mod.upload_ssl_cert(body.server_ip, body.name, body.cert.replace("'", ""), body.cert_type)
data = add_mod.upload_ssl_cert(body.server_ip, body.name, body.cert.replace("'", ""))
return jsonify(data), 201
except Exception as e:
return roxywi_common.handler_exceptions_for_json_data(e, 'Cannot upload SSL certificate')