Skip to content

Commit

Permalink
Cast protectedByAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
dagio committed Aug 16, 2016
1 parent 3d5cf11 commit c4a2af3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/API/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function upload($appFilePath, $platform, $publicKey = null, $protectedByA
],
[
'name' => 'protectedByAccount',
'contents' => $protectedByAccount ? '1' : '0',
'contents' => (bool)$protectedByAccount,
],
[
'name' => 'file',
Expand Down
4 changes: 4 additions & 0 deletions src/Command/UploadAppCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ protected function execute(InputInterface $input, OutputInterface $output)

$uploadApi = new Api($input->getArgument('token'));

if ($input->getOption('protected-by-account')) {
$output->writeln('Uploading the app with account protection');
}

$response = $uploadApi->upload(
$uploadFilePath,
$platform,
Expand Down

0 comments on commit c4a2af3

Please sign in to comment.