@docupace/pipeline 1.0.2-3.tes1 → 1.0.2-3.test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/next/deploy.js +5 -12
package/package.json
CHANGED
package/src/next/deploy.js
CHANGED
|
@@ -368,18 +368,11 @@ export async function deployFromSite(
|
|
|
368
368
|
let changesMade = false;
|
|
369
369
|
const applications = await getAppTypesFromRepo(fromEnv, fromSite);
|
|
370
370
|
// Iterate over applications in appInfo
|
|
371
|
-
let appInfoLocal =
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
// );
|
|
377
|
-
|
|
378
|
-
for (const application of applications) {
|
|
379
|
-
if (Object.prototype.hasOwnProperty.call(appInfo, application)) {
|
|
380
|
-
appInfoLocal[application] = appInfo[application];
|
|
381
|
-
}
|
|
382
|
-
}
|
|
371
|
+
let appInfoLocal = Object.fromEntries(
|
|
372
|
+
applications
|
|
373
|
+
.filter((application) => appInfo[application])
|
|
374
|
+
.map((application) => [application, appInfo[application]]),
|
|
375
|
+
);
|
|
383
376
|
|
|
384
377
|
if (Object.keys(appInfoLocal).length === 0) {
|
|
385
378
|
const { deployConfig: toDeployAppConfig } = await readDeployConfig(
|