parse port parameter passed by inquirer

This commit is contained in:
Kononnable 2019-11-03 17:22:15 +01:00
parent 4e3c0b37ad
commit d94b83c450

View File

@ -243,7 +243,7 @@ async function GetUtilParametersByInquirer() {
{
message: "Database port:",
name: "port",
type: "number",
type: "input",
default() {
return driver.standardPort;
},
@ -293,7 +293,7 @@ async function GetUtilParametersByInquirer() {
}
])) as any).schema;
}
connectionOptions.port = answ.port;
connectionOptions.port = parseInt(answ.port, 10);
connectionOptions.host = answ.host;
connectionOptions.user = answ.login;
connectionOptions.password = answ.password;