ante-erp-cli 1.11.24 → 1.11.25
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/commands/update.js +4 -13
package/package.json
CHANGED
package/src/commands/update.js
CHANGED
|
@@ -251,7 +251,7 @@ export async function update(options) {
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
// Detect which apps are installed
|
|
254
|
-
const { hasGateApp, hasGuardianApp, hasFacialWeb
|
|
254
|
+
const { hasGateApp, hasGuardianApp, hasFacialWeb } = detectInstalledApps(composeFile);
|
|
255
255
|
|
|
256
256
|
// Detect missing services that could be installed
|
|
257
257
|
const missingServices = detectMissingServices(composeFile);
|
|
@@ -267,7 +267,7 @@ export async function update(options) {
|
|
|
267
267
|
if (hasGateApp || missingServices.gateApp) totalSteps++; // Gate App health check
|
|
268
268
|
if (hasGuardianApp || missingServices.guardianApp) totalSteps++; // Guardian App health check
|
|
269
269
|
if (hasFacialWeb || missingServices.facialWeb) totalSteps++; // Facial Web health check
|
|
270
|
-
|
|
270
|
+
// POS App health check removed - not required
|
|
271
271
|
if (!options.skipCleanup) totalSteps++; // Cleanup step
|
|
272
272
|
|
|
273
273
|
// Pre-calculate step numbers for each task (fixes step numbering bug)
|
|
@@ -283,7 +283,7 @@ export async function update(options) {
|
|
|
283
283
|
const stepGateHealth = (hasGateApp || missingServices.gateApp) ? ++currentStep : null;
|
|
284
284
|
const stepGuardianHealth = (hasGuardianApp || missingServices.guardianApp) ? ++currentStep : null;
|
|
285
285
|
const stepFacialHealth = (hasFacialWeb || missingServices.facialWeb) ? ++currentStep : null;
|
|
286
|
-
|
|
286
|
+
// POS App health check removed - not required
|
|
287
287
|
const stepMigrations = ++currentStep;
|
|
288
288
|
const stepCleanup = !options.skipCleanup ? ++currentStep : null;
|
|
289
289
|
|
|
@@ -410,16 +410,7 @@ export async function update(options) {
|
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
},
|
|
413
|
-
|
|
414
|
-
title: stepPosHealth ? formatStepTitle(stepPosHealth, totalSteps, 'Waiting for POS App to be healthy') : '',
|
|
415
|
-
skip: () => !stepPosHealth ? 'POS App not installed' : false,
|
|
416
|
-
task: async () => {
|
|
417
|
-
const healthy = await waitForServiceHealthy(composeFile, 'ante-pos', 60);
|
|
418
|
-
if (!healthy) {
|
|
419
|
-
throw new Error('POS App did not become healthy within 60 seconds');
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
},
|
|
413
|
+
// POS App health check removed - not required
|
|
423
414
|
{
|
|
424
415
|
title: formatStepTitle(stepMigrations, totalSteps, 'Running database migrations'),
|
|
425
416
|
task: async (ctx, task) => {
|