Skip to content

Commit d5e2edc

Browse files
committed
remove ETag and Timestamp from uploaded template
1 parent 52a3db2 commit d5e2edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tools/GitHub/Invoke-ExecCommunityRepo.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function Invoke-ExecCommunityRepo {
107107
'UploadTemplate' {
108108
$GUID = $Request.Body.GUID
109109
$TemplateTable = Get-CIPPTable -TableName templates
110-
$TemplateEntity = Get-CIPPAzDataTableEntity @TemplateTable -Filter "RowKey eq '$($GUID)'"
110+
$TemplateEntity = Get-CIPPAzDataTableEntity @TemplateTable -Filter "RowKey eq '$($GUID)'" | Select-Object -ExcludeProperty ETag, Timestamp
111111
$Branch = $RepoEntity.UploadBranch ?? $RepoEntity.DefaultBranch
112112
if ($TemplateEntity) {
113113
$Template = $TemplateEntity.JSON | ConvertFrom-Json

0 commit comments

Comments
 (0)