diff --git a/SitecoreShipFunctions.psd1 b/SitecoreShipFunctions.psd1 index 3c20646..b31c2ec 100644 --- a/SitecoreShipFunctions.psd1 +++ b/SitecoreShipFunctions.psd1 @@ -9,7 +9,7 @@ @{ # Version number of this module. -ModuleVersion = '1.1' +ModuleVersion = '1.1.01' # ID used to uniquely identify this module GUID = '1b83fbdb-f779-4cef-bbC5-b289a114eef4' diff --git a/SitecoreShipFunctions.psm1 b/SitecoreShipFunctions.psm1 index 424039f..f2b2d3e 100644 --- a/SitecoreShipFunctions.psm1 +++ b/SitecoreShipFunctions.psm1 @@ -640,7 +640,7 @@ function Get-SitecoreShipLastCompletedPublish $scheme = "https" } - $servicePath = "/services/publish" + $servicePath = "/services/publish/lastcompleted" if (![string]::IsNullOrWhiteSpace($PublishSource)) { $servicePath += "/" + $PublishSource.ToLower() @@ -655,10 +655,7 @@ function Get-SitecoreShipLastCompletedPublish } $serviceUrl = "{0}://{1}{2}" -f $scheme,$HostName,$servicePath - write-host $serviceUrl - - $time = Invoke-RestMethod "http://sitecoreshippoc/services/publish/lastcompleted" -Method GET -TimeoutSec $Timeout - + $time = Invoke-RestMethod $serviceUrl -Method GET -TimeoutSec $Timeout if (!$ResultAsUniversalTime) { $time = $time.ToLocalTime()