FIX: Docs

This commit is contained in:
Victor Radael
2022-08-19 11:08:24 -03:00
2 changed files with 2 additions and 5 deletions
@@ -49,8 +49,6 @@ export class CreateNetworkConfigReq extends PickType(NetworkConfigDto, [
'network_type_name',
'name',
'description',
'type',
'plugin',
]) {
@ApiProperty({ format: 'binary' })
ovpn_file: string;
@@ -94,10 +94,9 @@ export class NetworkConfigService {
{ customer_name, customer_id, user_id },
): Promise<CreateNetworkConfigRes> {
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();