fix(push): wrong version name kills command
This commit is contained in:
parent
79a374d460
commit
c02eed742d
10
myt-push.js
10
myt-push.js
|
@ -244,13 +244,15 @@ class Push extends Command {
|
||||||
|
|
||||||
let apply = false;
|
let apply = false;
|
||||||
|
|
||||||
if (!version)
|
if (!version) {
|
||||||
this.emit('version', version, versionDir, 'wrongDirectory');
|
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');
|
this.emit('version', version, versionDir, 'badVersion');
|
||||||
else
|
continue;
|
||||||
apply = version.apply;
|
}
|
||||||
|
|
||||||
|
apply = version.apply;
|
||||||
if (apply) showLog = true;
|
if (apply) showLog = true;
|
||||||
if (showLog) this.emit('version', version, versionDir);
|
if (showLog) this.emit('version', version, versionDir);
|
||||||
if (!apply) continue;
|
if (!apply) continue;
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@verdnatura/myt",
|
"name": "@verdnatura/myt",
|
||||||
"version": "1.6.7",
|
"version": "1.6.8",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@verdnatura/myt",
|
"name": "@verdnatura/myt",
|
||||||
"version": "1.6.7",
|
"version": "1.6.8",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sqltools/formatter": "^1.2.5",
|
"@sqltools/formatter": "^1.2.5",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@verdnatura/myt",
|
"name": "@verdnatura/myt",
|
||||||
"version": "1.6.7",
|
"version": "1.6.8",
|
||||||
"author": "Verdnatura Levante SL",
|
"author": "Verdnatura Levante SL",
|
||||||
"description": "MySQL version control",
|
"description": "MySQL version control",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
|
|
Loading…
Reference in New Issue