Skip to content

Commit

Permalink
Fix -UpdateTrailers support
Browse files Browse the repository at this point in the history
There was an error in `Patch-ApplicationSubmission` (used internally
by `Update-ApplicationSubmission`) where it checked for
`-UpdateGamingOptions` for both updating gaming options as well
as for updating trailers, where it should have been checking
`-UpdateTrailers` for the trailers portion.
  • Loading branch information
HowardWolosky committed Apr 10, 2018
1 parent 12c2ff2 commit 01dbbd1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@

------

## [1.16.3](https://github.com/Microsoft/StoreBroker/tree/1.16.3) - (2018/04/10)
### Fixes:

- There was an error in `Update-ApplicationSubmission`) where it checked for
`-UpdateGamingOptions` for both updating gaming options as well as for
updating trailers, where it should have been checking `-UpdateTrailers`
for the trailers portion.

More Info: [[pr]](https://github.com/Microsoft/StoreBroker/pull/115) | [[cl]](https://github.com/Microsoft/StoreBroker/commit/TODO)

Author: [**@HowardWolosky**](https://github.com/HowardWolosky)

------

## [1.16.2](https://github.com/Microsoft/StoreBroker/tree/1.16.2) - (2018/04/06)
### Fixes:

Expand Down
2 changes: 1 addition & 1 deletion StoreBroker/StoreBroker.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
CompanyName = 'Microsoft Corporation'
Copyright = 'Copyright (C) Microsoft Corporation. All rights reserved.'

ModuleVersion = '1.16.2'
ModuleVersion = '1.16.3'
Description = 'Provides command-line access to the Windows Store Submission REST API.'

RootModule = 'StoreIngestionApi'
Expand Down
2 changes: 1 addition & 1 deletion StoreBroker/StoreIngestionApplicationApi.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ function Patch-ApplicationSubmission
$PatchedSubmission.gamingOptions = DeepCopy-Object -Object (, $NewSubmission.gamingOptions)
}

if ($UpdateGamingOptions)
if ($UpdateTrailers)
{
# Making the assumption that hasAdvancedListingsPermission is false here since the
# current submission object doesn't contain a trailers node.
Expand Down

0 comments on commit 01dbbd1

Please sign in to comment.