Skip to content

Commit

Permalink
Use the numerical id of the group id instead of the actual valie (#2438)
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro authored Jan 6, 2025
1 parent 340634b commit ee4e650
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 3 additions & 4 deletions src/app/cdk/panel/panel/panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,11 @@ export class PanelComponent implements OnInit {
)
.subscribe()
break
case 'peer-review':
case 'peer-review':
this._peerReviewService
.updateVisibility(
this.elements.groupIdValue,
visibility,
this.elements?.groupId
this.elements.groupId,
visibility
)
.subscribe()
break
Expand Down
9 changes: 4 additions & 5 deletions src/app/core/record-peer-review/record-peer-review.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,14 @@ export class RecordPeerReviewService {
}

updateVisibility(
putCode: any,
visibility: VisibilityStrings,
groupId?: any
): Observable<any> {
groupId: any,
visibility: VisibilityStrings
): Observable<any> {
return this._http
.post(
environment.API_WEB +
'peer-reviews/' +
putCode +
groupId +
'/visibility/' +
visibility,
null
Expand Down

0 comments on commit ee4e650

Please sign in to comment.