Skip to content

Commit 7e8cefb

Browse files
Apply suggestions from code review
1 parent 5c059bf commit 7e8cefb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/app/src/cli/services/context.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ describe('ensureDeployContext', () => {
576576
unsetAppConfigValueSpy.mockRestore()
577577
})
578578

579-
test('sets didMigrateExtensionsToDevDash to true when app modules are missing registration UUIDs', async () => {
579+
test('sets didMigrateExtensionsToDevDash to true when app modules are missing registration IDs', async () => {
580580
// Given
581581
const app = testAppWithConfig({config: {client_id: APP2.apiKey}})
582582
const identifiers = {
@@ -622,7 +622,7 @@ describe('ensureDeployContext', () => {
622622
expect(result.didMigrateExtensionsToDevDash).toBe(true)
623623
})
624624

625-
test('sets didMigrateExtensionsToDevDash to false when all app modules have registration UUIDs', async () => {
625+
test('sets didMigrateExtensionsToDevDash to false when all app modules have registration IDs', async () => {
626626
// Given
627627
const app = testAppWithConfig({config: {client_id: APP2.apiKey}})
628628
const identifiers = {

packages/app/src/cli/services/context.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ export async function ensureDeployContext(options: DeployOptions): Promise<Ensur
168168
// if the current active app version is missing user_identifiers in some app module, then we are migrating to dev dash
169169
let didMigrateExtensionsToDevDash = false
170170
if (developerPlatformClient.supportsAtomicDeployments && activeAppVersion) {
171-
const missingUids = activeAppVersion.appModuleVersions.some((version) => !version.registrationId)
172-
didMigrateExtensionsToDevDash = missingUids
171+
didMigrateExtensionsToDevDash = activeAppVersion.appModuleVersions.some((version) => !version.registrationId)
173172
}
174173

175174
return {identifiers, didMigrateExtensionsToDevDash}

0 commit comments

Comments
 (0)