fix: only sub-apps that start with the main app are upgraded with it (#6133)

This commit is contained in:
chenos 2025-01-24 15:09:46 +08:00 committed by GitHub
parent 61488d95af
commit 5ac9f432bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,6 +30,10 @@ const defaultSubAppUpgradeHandle: SubAppUpgradeHandler = async (mainApp: Applica
findOptions['filter'] = {
name: appSupervisor.singleAppName,
};
} else {
findOptions['filter'] = {
'options.autoStart': true,
};
}
const instances = await repository.find(findOptions);