refactor: remove address field and related logic
This commit is contained in:
@@ -4,11 +4,11 @@ from typing import Any
|
||||
|
||||
from motor.motor_asyncio import AsyncIOMotorCollection
|
||||
from pymongo import ReturnDocument
|
||||
from services.proxy.models import ServiceConfig
|
||||
|
||||
from core.mongodb import get_database
|
||||
from models.proxy import ProxyDocument, ProxyUpdateInput
|
||||
from models.service import ServiceEndpointDocument
|
||||
from services.proxy.models import ServiceConfig
|
||||
|
||||
COLLECTION_NAME = "proxies"
|
||||
|
||||
@@ -47,7 +47,6 @@ async def create_proxy(
|
||||
name=name,
|
||||
code=code,
|
||||
service=ServiceEndpointDocument(
|
||||
address=service["address"],
|
||||
port=service["port"],
|
||||
),
|
||||
created_at=now,
|
||||
|
||||
Reference in New Issue
Block a user