Skip to content

Commit be6c2ec

Browse files
committed
chore: scope appKey validation to selectApp
1 parent 04404ca commit be6c2ec

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

‎.github/pr81-final-fix.py‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,23 @@ def replace_all(path: str, old: str, new: str, expected: int) -> None:
110110
t('appPlatformMismatch', { appId, appPlatform: app.platform, platform }),
111111
);
112112
}
113+
return app;
114+
""",
115+
)
116+
117+
replace_once(
118+
"src/app.ts",
119+
""" const { appKey } = await assertAppPlatform(String(id), platform);
120+
121+
const configPath = options.config || updateJson;
122+
""",
123+
""" const app = await assertAppPlatform(String(id), platform);
113124
if (typeof app.appKey !== 'string' || !app.appKey) {
114-
throw new Error(t('appKeyMissing', { appId }));
125+
throw new Error(t('appKeyMissing', { appId: id }));
115126
}
116-
return { ...app, appKey: app.appKey };
127+
const appKey = app.appKey;
128+
129+
const configPath = options.config || updateJson;
117130
""",
118131
)
119132

0 commit comments

Comments
 (0)