From c02eed742d9ac8f5de5c9d0c80f8951f0c9f4835 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Thu, 22 Feb 2024 10:10:29 +0100 Subject: [PATCH] fix(push): wrong version name kills command --- myt-push.js | 10 ++++++---- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/myt-push.js b/myt-push.js index e40fa2c..970fc7b 100644 --- a/myt-push.js +++ b/myt-push.js @@ -244,13 +244,15 @@ class Push extends Command { let apply = false; - if (!version) + if (!version) { this.emit('version', version, versionDir, 'wrongDirectory'); - else if (version.number.length != dbVersion.number.length) + continue; + } else if (version.number.length != dbVersion.number.length) { this.emit('version', version, versionDir, 'badVersion'); - else - apply = version.apply; + continue; + } + apply = version.apply; if (apply) showLog = true; if (showLog) this.emit('version', version, versionDir); if (!apply) continue; diff --git a/package-lock.json b/package-lock.json index 5e78c78..1cfd32c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@verdnatura/myt", - "version": "1.6.7", + "version": "1.6.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@verdnatura/myt", - "version": "1.6.7", + "version": "1.6.8", "license": "GPL-3.0", "dependencies": { "@sqltools/formatter": "^1.2.5", diff --git a/package.json b/package.json index c9d01ea..ff7d358 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@verdnatura/myt", - "version": "1.6.7", + "version": "1.6.8", "author": "Verdnatura Levante SL", "description": "MySQL version control", "license": "GPL-3.0",