Skip to content

Commit

Permalink
Fix supportsAllDrives parameter in other cmdlets
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Kozlov authored and Max Kozlov committed Feb 3, 2025
1 parent 0a9fe14 commit 35a23e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GMGoogleDrive/Public/Item/Remove-GDriveItem.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ param(
"Authorization" = "Bearer $AccessToken"
}
$Revision = if ($RevisionID) { '/revisions/' + $RevisionID } else { '' }
$Uri = '{0}{1}{2}?{3}' -f $GDriveUri, $ID, $Revision, "?supportsAllDrives=true"
$Uri = '{0}{1}{2}?supportsAllDrives=true' -f $GDriveUri, $ID, $Revision
Write-Verbose "URI: $Uri"

if ($PSCmdlet.ShouldProcess($ID, "Remove Item")) {
Expand Down
2 changes: 1 addition & 1 deletion GMGoogleDrive/Public/Item/Restore-GDriveItem.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ param(
$Headers = @{
"Authorization" = "Bearer $AccessToken"
}
$Uri = '{0}{1}?{2}' -f $GDriveUri, $ID, "supportsAllDrives=true"
$Uri = '{0}{1}?supportsAllDrives=true' -f $GDriveUri, $ID
Write-Verbose "URI: $Uri"
if ($PSCmdlet.ShouldProcess($ID, "Restore Item from trash")) {
Set-GDriveItemProperty @PSBoundParameters -JsonProperty '{ "trashed": "false" }'
Expand Down

0 comments on commit 35a23e7

Please sign in to comment.