diff --git a/src/modules/network-config/dto/network-config.ts b/src/modules/network-config/dto/network-config.ts index 2a52f00..092f008 100644 --- a/src/modules/network-config/dto/network-config.ts +++ b/src/modules/network-config/dto/network-config.ts @@ -49,8 +49,6 @@ export class CreateNetworkConfigReq extends PickType(NetworkConfigDto, [ 'network_type_name', 'name', 'description', - 'type', - 'plugin', ]) { @ApiProperty({ format: 'binary' }) ovpn_file: string; diff --git a/src/modules/network-config/network-config.service.ts b/src/modules/network-config/network-config.service.ts index e9228a2..3f4b63b 100644 --- a/src/modules/network-config/network-config.service.ts +++ b/src/modules/network-config/network-config.service.ts @@ -94,10 +94,9 @@ export class NetworkConfigService { { customer_name, customer_id, user_id }, ): Promise { const { description, name, network_type_id, network_type_name } = body; - let { type, plugin } = body; - type = type || 'vpn'; - plugin = plugin || 'openvpn'; + const type = 'vpn'; + const plugin = 'openvpn'; const OVPN_FILE_STRING = Buffer.from(file.buffer).toString();