Skip to content

Commit 5f3a555

Browse files
committed
test fix
1 parent 430d8ca commit 5f3a555

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/backend/src/services/part-review.services.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ export default class PartReviewService {
10711071
}
10721072
});
10731073

1074-
if (!popup || popup.review.submission.part.project.wbsElement.organizationId) {
1074+
if (!popup || popup.review.submission.part.project.wbsElement.organizationId !== organizationId) {
10751075
throw new NotFoundException('Pop Up', popupId);
10761076
}
10771077

@@ -1108,7 +1108,7 @@ export default class PartReviewService {
11081108
}
11091109
});
11101110

1111-
if (!popup || popup.review.submission.part.project.wbsElement.organizationId) {
1111+
if (!popup || popup.review.submission.part.project.wbsElement.organizationId !== organizationId) {
11121112
throw new NotFoundException('Pop Up', popupId);
11131113
}
11141114

0 commit comments

Comments
 (0)