mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-08 22:29:09 +00:00
FIX: create network_config type and plugin default values
This commit is contained in:
@@ -91,7 +91,11 @@ export class NetworkConfigService {
|
||||
file: Express.Multer.File,
|
||||
{ customer_name, customer_id },
|
||||
): Promise<CreateNetworkConfigRes> {
|
||||
const { description, name, type, network_type_id, plugin } = body;
|
||||
const { description, name, network_type_id } = body;
|
||||
let { type, plugin } = body;
|
||||
|
||||
type = type || 'vpn';
|
||||
plugin = plugin || 'openvpn';
|
||||
|
||||
const OVPN_FILE_STRING = Buffer.from(file.buffer).toString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user