From ef1a28b3a311e13049e81b4a2f77197f1c323802 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Sun, 28 Jan 2024 12:55:49 +0100 Subject: [PATCH] fix: refs #5483 run network param code fix --- myt-run.js | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/myt-run.js b/myt-run.js index dd53f0f..6e26d3d 100644 --- a/myt-run.js +++ b/myt-run.js @@ -126,8 +126,8 @@ class Run extends Command { }); if (opts.ci) { - dbConfig.host = network - ? netSettings.Networks[network].IPAddress + dbConfig.host = opts.network + ? netSettings.Networks[opts.network].IPAddress : netSettings.Gateway; dbConfig.port = 3306; } else diff --git a/package-lock.json b/package-lock.json index 9d99104..aef68b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@verdnatura/myt", - "version": "1.5.32", + "version": "1.5.34", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@verdnatura/myt", - "version": "1.5.32", + "version": "1.5.34", "license": "GPL-3.0", "dependencies": { "@sqltools/formatter": "^1.2.5", diff --git a/package.json b/package.json index e649d4c..d57cf28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@verdnatura/myt", - "version": "1.5.33", + "version": "1.5.34", "author": "Verdnatura Levante SL", "description": "MySQL version control", "license": "GPL-3.0",