Skip to content

Commit 6fee23e

Browse files
committed
Update breakdown-extensions.ts
1 parent 5c59bd0 commit 6fee23e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/app/src/cli/services/context/breakdown-extensions.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -399,13 +399,14 @@ function loadExtensionsIdentifiersBreakdown(
399399
// In AppManagement, matching has to be via UID, but we acccept UUID matches if the UID is empty (migration pending)
400400
// In Partners, we keep the legacy match of only UUID.
401401
function moduleHasUUIDorUID(module: AppModuleVersion, identifier: string) {
402+
const UuidMatch = module.registrationUuid === identifier
403+
const UidMatch = module.registrationId === identifier
404+
const pendingMigration = module.registrationId.length === 0
405+
402406
if (developerPlatformClient.supportsAtomicDeployments) {
403-
return (
404-
(module.registrationUuid === identifier && module.registrationId.length === 0) ||
405-
module.registrationId === identifier
406-
)
407+
return UidMatch || (pendingMigration && UuidMatch)
407408
} else {
408-
return module.registrationUuid === identifier
409+
return UuidMatch
409410
}
410411
}
411412

0 commit comments

Comments
 (0)