Skip to content

Commit 69d14c4

Browse files
Fix platform update command (#2910)
`tns platform update` command should install the latest platform in case it is not installed. Currently this fails (regression from previous commit). Fix this by calling correct validate method.
1 parent b7e9bf7 commit 69d14c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/update-platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class UpdatePlatformCommand implements ICommand {
2020

2121
for (let arg of args) {
2222
const platform = arg.split("@")[0];
23-
this.$platformService.validatePlatformInstalled(platform, this.$projectData);
23+
this.$platformService.validatePlatform(platform, this.$projectData);
2424
const platformData = this.$platformsData.getPlatformData(platform, this.$projectData);
2525
const platformProjectService = platformData.platformProjectService;
2626
await platformProjectService.validate(this.$projectData);

0 commit comments

Comments
 (0)