Change port front and backend finished

This commit is contained in:
DomySh
2022-06-30 19:21:14 +02:00
parent 1904f3ef2f
commit 8d41b94c36
3 changed files with 51 additions and 19 deletions

View File

@@ -206,6 +206,8 @@ async def change_port(service_id: str, change_port:ChangePortForm, auth: bool =
if not change_port.port is None:
sql_inj+=" public_port = ? "
query.append(change_port.port)
if not change_port.port is None and not change_port.internalPort is None:
sql_inj += ","
if not change_port.internalPort is None:
sql_inj+=" internal_port = ? "
query.append(change_port.internalPort)