Skip to content

Commit

Permalink
Using group id for updating peer review visibility (#2433)
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro authored Dec 24, 2024
1 parent 7efdca4 commit 24c1ae0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions src/app/cdk/panel/panel/panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,9 @@ export class PanelComponent implements OnInit {
.subscribe()
break
case 'peer-review':
const peerReviewPutCodes = []
if (this.elements) {
this.elements.putCodes.forEach((putCode) => {
peerReviewPutCodes.push(putCode)
})
}
this._peerReviewService
.updateVisibility(
peerReviewPutCodes.join(),
this.elements.groupIdValue,
visibility,
this.elements?.groupId
)
Expand Down
4 changes: 2 additions & 2 deletions src/app/core/record-peer-review/record-peer-review.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ export class RecordPeerReviewService {
groupId?: any
): Observable<any> {
return this._http
.get(
.post(
environment.API_WEB +
'peer-reviews/' +
putCode +
'/visibility/' +
visibility
visibility, null
)
.pipe(
retry(3),
Expand Down

0 comments on commit 24c1ae0

Please sign in to comment.