Skip to content

Commit

Permalink
!deploy v2.32.3 to fix #234
Browse files Browse the repository at this point in the history
## 2.32.3 - 2019-09-18

* [Issue #234](#234)
  * Fixed: `Update-GSUserPhoto` errors by switching to `[System.IO.File]::ReadAllBytes($path)`.
  • Loading branch information
scrthq committed Sep 19, 2019
1 parent 211feb1 commit 6e94193
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* [PSGSuite - ChangeLog](#psgsuite---changelog)
* [2.32.3 - 2019-09-18](#2323---2019-09-18)
* [2.32.2 - 2019-09-15](#2322---2019-09-15)
* [2.32.1 - 2019-09-14](#2321---2019-09-14)
* [2.32.0 - 2019-09-12](#2320---2019-09-12)
Expand Down Expand Up @@ -99,6 +100,11 @@

# PSGSuite - ChangeLog

## 2.32.3 - 2019-09-18

* [Issue #234](https://github.com/scrthq/PSGSuite/issues/234)
* Fixed: `Update-GSUserPhoto` errors by switching to `[System.IO.File]::ReadAllBytes($path)`.

## 2.32.2 - 2019-09-15

* [Issue #225](https://github.com/scrthq/PSGSuite/issues/225)
Expand Down
2 changes: 1 addition & 1 deletion PSGSuite/PSGSuite.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'PSGSuite.psm1'

# Version number of this module.
ModuleVersion = '2.32.2'
ModuleVersion = '2.32.3'

# ID used to uniquely identify this module
GUID = '9d751152-e83e-40bb-a6db-4c329092aaec'
Expand Down
2 changes: 1 addition & 1 deletion PSGSuite/Public/Users/Update-GSUserPhoto.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function Update-GSUserPhoto {
$User = "$($User)@$($Script:PSGSuite.Domain)"
}
$mimeType = Get-MimeType -File $Path
$photoData = [System.Convert]::ToBase64String((Get-Content $Path -Encoding Byte)) | Convert-Base64 -From Base64String -To WebSafeBase64String
$photoData = [System.Convert]::ToBase64String(([System.IO.File]::ReadAllBytes($Path))) | Convert-Base64 -From Base64String -To WebSafeBase64String
$body = New-Object 'Google.Apis.Admin.Directory.directory_v1.Data.UserPhoto' -Property @{
PhotoData = $photoData
MimeType = $mimeType
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ All other functions are either intact or have an alias included to support backw

[Full CHANGELOG here](https://github.com/scrthq/PSGSuite/blob/master/CHANGELOG.md)

#### 2.32.3 - 2019-09-18

* [Issue #234](https://github.com/scrthq/PSGSuite/issues/234)
* Fixed: `Update-GSUserPhoto` errors by switching to `[System.IO.File]::ReadAllBytes($path)`.

#### 2.32.2 - 2019-09-15

* [Issue #225](https://github.com/scrthq/PSGSuite/issues/225)
Expand Down
14 changes: 7 additions & 7 deletions ci/NuGetDependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"Name": "Google.Apis.Classroom.v1.dll",
"BaseName": "Google.Apis.Classroom.v1",
"Target": "Latest",
"LatestVersion": "1.41.1.1712"
"LatestVersion": "1.41.1.1713"
},
{
"Name": "Google.Apis.Core.dll",
Expand All @@ -69,13 +69,13 @@
"Name": "Google.Apis.Drive.v3.dll",
"BaseName": "Google.Apis.Drive.v3",
"Target": "Latest",
"LatestVersion": "1.41.1.1705"
"LatestVersion": "1.41.1.1708"
},
{
"Name": "Google.Apis.DriveActivity.v2.dll",
"BaseName": "Google.Apis.DriveActivity.v2",
"Target": "Latest",
"LatestVersion": "1.41.1.1710"
"LatestVersion": "1.41.1.1713"
},
{
"Name": "Google.Apis.Gmail.v1.dll",
Expand All @@ -93,7 +93,7 @@
"Name": "Google.Apis.HangoutsChat.v1.dll",
"BaseName": "Google.Apis.HangoutsChat.v1",
"Target": "Latest",
"LatestVersion": "1.41.1.1707"
"LatestVersion": "1.41.1.1716"
},
{
"Name": "Google.Apis.Licensing.v1.dll",
Expand All @@ -111,7 +111,7 @@
"Name": "Google.Apis.PeopleService.v1.dll",
"BaseName": "Google.Apis.PeopleService.v1",
"Target": "Latest",
"LatestVersion": "1.41.1.1713"
"LatestVersion": "1.41.1.1715"
},
{
"Name": "Google.Apis.PlatformServices.dll",
Expand All @@ -123,7 +123,7 @@
"Name": "Google.Apis.Script.v1.dll",
"BaseName": "Google.Apis.Script.v1",
"Target": "Latest",
"LatestVersion": "1.41.1.1710"
"LatestVersion": "1.41.1.1714"
},
{
"Name": "Google.Apis.Sheets.v4.dll",
Expand All @@ -141,7 +141,7 @@
"Name": "Google.Apis.Tasks.v1.dll",
"BaseName": "Google.Apis.Tasks.v1",
"Target": "Latest",
"LatestVersion": "1.41.1.1711"
"LatestVersion": "1.41.1.1713"
},
{
"Name": "Google.Apis.Urlshortener.v1.dll",
Expand Down

0 comments on commit 6e94193

Please sign in to comment.