Skip to content

Commit 692d725

Browse files
Small fix for assessments
1 parent 159ce3e commit 692d725

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

backend/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ apiRouter.use('/sdc',sdcRouter);
222222
apiRouter.use('/grad',gradRouter);
223223
apiRouter.use('/gradReports', gradReportsRouter);
224224
apiRouter.use('/challengeReports', challengeReportsRouter);
225-
apiRouter.use('/assessment',assessmentRouter);
225+
apiRouter.use('/assessments',assessmentRouter);
226226

227227
//Handle 500 error
228228
app.use((err, _req, res, next) => {

frontend/src/components/assessments/AssessmentSessionDetail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default {
7979
this.loading = true;
8080
ApiService.apiAxios
8181
.get(
82-
`${ApiRoutes.eas.GET_ASSESSMENT_SESSIONS}/school-year/` + this.schoolYear + '/' + this.userInfo.activeInstituteType,
82+
`${ApiRoutes.assessments.GET_ASSESSMENT_SESSIONS}/school-year/` + this.schoolYear + '/' + this.userInfo.activeInstituteType,
8383
{}
8484
).then((response) => {
8585
this.schoolYearSessions = response.data;

frontend/src/components/assessments/AssessmentSessions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default {
172172
getAllAssessmentSessions() {
173173
this.loading = true;
174174
ApiService.apiAxios
175-
.get(`${ApiRoutes.eas.GET_ASSESSMENT_SESSIONS}` + '/' + this.userInfo.activeInstituteType, {})
175+
.get(`${ApiRoutes.assessments.GET_ASSESSMENT_SESSIONS}` + '/' + this.userInfo.activeInstituteType, {})
176176
.then((response) => {
177177
this.allSessions = response.data.sort((a, b) =>
178178
LocalDateTime.parse(b.activeUntilDate).compareTo(LocalDateTime.parse(a.activeUntilDate))

frontend/src/components/assessments/registrations/StudentRegistrations.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export default {
232232
]
233233
}
234234
ApiService.apiAxios
235-
.get(`${ApiRoutes.eas.GET_ASSESSMENT_STUDENTS_PAGINATED}/${this.userInfo.activeInstituteType}`, {
235+
.get(`${ApiRoutes.assessments.GET_ASSESSMENT_STUDENTS_PAGINATED}/${this.userInfo.activeInstituteType}`, {
236236
params: {
237237
pageNumber: this.pageNumber - 1,
238238
pageSize: this.pageSize,

frontend/src/components/assessments/registrations/forms/AddStudentRegistration.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export default {
363363
364364
ApiService.apiAxios
365365
.post(
366-
`${ApiRoutes.eas.ASSESSMENT_STUDENTS}/${this.userInfo.activeInstituteType}`,
366+
`${ApiRoutes.assessments.ASSESSMENT_STUDENTS}/${this.userInfo.activeInstituteType}`,
367367
newAssessmentStudentDetail
368368
)
369369
.then((res) => {

frontend/src/components/assessments/registrations/forms/EditStudentRegistration.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ export default {
457457
getAssessmentStudentDetail(assessmentStudentID) {
458458
this.loadingCount += 1;
459459
this.selectedAssessmentStudentID=assessmentStudentID;
460-
ApiService.apiAxios.get(`${ApiRoutes.eas.ASSESSMENT_STUDENTS}/${this.userInfo.activeInstituteType}/${assessmentStudentID}`)
460+
ApiService.apiAxios.get(`${ApiRoutes.assessments.ASSESSMENT_STUDENTS}/${this.userInfo.activeInstituteType}/${assessmentStudentID}`)
461461
.then(response => {
462462
this.assessmentStudentDetail = response.data;
463463
this.refreshAssessmentTypes(this.assessmentStudentDetail.sessionID);
@@ -484,7 +484,7 @@ export default {
484484
);
485485
ApiService.apiAxios
486486
.put(
487-
`${ApiRoutes.eas.ASSESSMENT_STUDENTS}/${this.userInfo.activeInstituteType}/`+this.selectedAssessmentStudentID,
487+
`${ApiRoutes.assessments.ASSESSMENT_STUDENTS}/${this.userInfo.activeInstituteType}/`+this.selectedAssessmentStudentID,
488488
putAssessmentStudentDetail
489489
)
490490
.then((res) => {
@@ -513,7 +513,7 @@ export default {
513513
confirmation.then((result) => {
514514
if (result) {
515515
this.loadingCount += 1;
516-
ApiService.apiAxios.delete(`${ApiRoutes.eas.ASSESSMENT_STUDENTS}/${this.userInfo.activeInstituteType}/`+this.selectedAssessmentStudentID)
516+
ApiService.apiAxios.delete(`${ApiRoutes.assessments.ASSESSMENT_STUDENTS}/${this.userInfo.activeInstituteType}/`+this.selectedAssessmentStudentID)
517517
.then(() => {
518518
setSuccessAlert('Success! The student registration details have been deleted.');
519519
this.$emit('reset-student-registration-pagination');

0 commit comments

Comments
 (0)