Skip to content

Commit

Permalink
Fix: Missing output type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Splaxi committed Mar 2, 2024
1 parent 9b3a83b commit 47c48bc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions d365bap.tools/functions/Compare-BapEnvironmentD365App.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ function Compare-BapEnvironmentD365App {

if (Test-PSFFunctionInterrupt) { return }

$appsSourceEnvironment = Get-BapEnvironmentD365App -EnvironmentId $SourceEnvironmentId -InstallState Installed
$appsDestinationEnvironment = Get-BapEnvironmentD365App -EnvironmentId $DestinationEnvironmentId
$appsSourceEnvironment = Get-BapEnvironmentD365App -EnvironmentId $SourceEnvironmentId -InstallState Installed -$GeoRegion $GeoRegion
$appsDestinationEnvironment = Get-BapEnvironmentD365App -EnvironmentId $DestinationEnvironmentId -$GeoRegion $GeoRegion
}

process {
Expand Down
1 change: 1 addition & 0 deletions d365bap.tools/functions/Get-BapEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#>
function Get-BapEnvironment {
[CmdletBinding()]
[OutputType('System.Object[]')]
param (
[string] $EnvironmentId = "*",

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#>
function Get-BapEnvironmentApplicationUser {
[CmdletBinding()]
[OutputType('System.Object[]')]
param (
[parameter (mandatory = $true)]
[string] $EnvironmentId,
Expand Down
1 change: 1 addition & 0 deletions d365bap.tools/functions/Get-BapEnvironmentD365App.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
#>
function Get-BapEnvironmentD365App {
[CmdletBinding()]
[OutputType('System.Object[]')]
param (
[parameter (mandatory = $true)]
[string] $EnvironmentId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ function Invoke-BapEnvironmentInstallD365App {
)

begin {
$tenantId = (Get-AzContext).Tenant.Id

# Make sure all *BapEnvironment* cmdlets will validate that the environment exists prior running anything.
$envObj = Get-BapEnvironment -EnvironmentId $EnvironmentId | Select-Object -First 1

Expand Down

0 comments on commit 47c48bc

Please sign in to comment.