From b95b5932923aa89570bc7e94b2725fc2809ca807 Mon Sep 17 00:00:00 2001 From: jgallego Date: Thu, 28 Sep 2023 10:05:05 +0200 Subject: [PATCH] fixes #6204 without isOtherRealmScript function --- myt-push.js | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/myt-push.js b/myt-push.js index 8d3b6c2..9fd0507 100644 --- a/myt-push.js +++ b/myt-push.js @@ -151,22 +151,7 @@ class Push extends Command { function isUndoScript(script) { return /\.undo\.sql$/.test(script); } - function isOtherRealmScript(script, realm) { - const splitScript = script.split('.'); - const realmPart = splitScript[splitScript.length - 2]; - - if (splitScript.length <= 2) { - return false; - } - - if (!realm) { - return !!realmPart; - } - - return realmPart && realmPart !== realm; - } - - + const skipFiles = new Set([ 'README.md', '.archive' @@ -235,13 +220,12 @@ class Push extends Command { continue; if (match[1]) { - if (skipRealm) { + if (skipRealm) continue; - } - - if (!realm) { + + if (!realm) continue; - } + } const [[row]] = await conn.query( `SELECT errorNumber FROM versionLog