Skip to content

Commit 4b72a65

Browse files
committed
Add missing url edits
1 parent 7507aca commit 4b72a65

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

backend/src/components/sdc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ async function removeSDCSchoolCollectionStudents(req, res) {
385385
async function getSchoolStudentDuplicates(req, res) {
386386
try {
387387
const token = getAccessToken(req);
388-
let studentDuplicates = await getData(token, `${config.get('sdc:sdcDuplicateURL')}/${req.params.sdcSchoolCollectionID}/duplicates`, req.session?.correlationID);
388+
let studentDuplicates = await getData(token, `${config.get('sdc:sdcDuplicateURL')}/sdcSchoolCollection/${req.params.sdcSchoolCollectionID}/duplicates`, req.session?.correlationID);
389389

390390
let dupsMap = new Map();
391391
studentDuplicates.forEach((dup) => {
@@ -412,7 +412,7 @@ async function getSchoolStudentDuplicates(req, res) {
412412
async function getSchoolSdcDuplicates(req, res) {
413413
try {
414414
const token = getAccessToken(req);
415-
let sdcDuplicates = await getData(token, `${config.get('sdc:sdcDuplicateURL')}/${req.params.sdcSchoolCollectionID}/sdc-duplicates`, req.session?.correlationID);
415+
let sdcDuplicates = await getData(token, `${config.get('sdc:sdcDuplicateURL')}/sdcSchoolCollection/${req.params.sdcSchoolCollectionID}/sdc-duplicates`, req.session?.correlationID);
416416

417417
res.status(HttpStatus.OK).json(setDuplicateResponsePayload(req, sdcDuplicates, false, false));
418418
} catch (e) {
@@ -946,7 +946,7 @@ async function getProvincialDuplicates(req, res) {
946946
async function getProvincialDuplicatesForSchool(req, res) {
947947
try {
948948
const token = getAccessToken(req);
949-
let sdcDuplicates = await getData(token, `${config.get('sdc:schoolCollectionURL')}/${req.params.sdcSchoolCollectionID}/provincial-duplicates`, req.session?.correlationID);
949+
let sdcDuplicates = await getData(token, `${config.get('sdc::sdcDuplicateURL')}/sdcSchoolCollection/${req.params.sdcSchoolCollectionID}/provincial-duplicates`, req.session?.correlationID);
950950
await getUserWithSdcRole(req, sdcDuplicates);
951951
let responseDupe = setDuplicateResponsePayload(req, sdcDuplicates, true, true);
952952
res.status(HttpStatus.OK).json(responseDupe);

frontend/src/components/common/ResolvedDuplicates.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export default {
226226
},
227227
getSchoolDuplicates(){
228228
this.isLoading = true;
229-
ApiService.apiAxios.get(ApiRoutes.sdc.SDC_SCHOOL_COLLECTION + '/'+ this.$route.params.schoolCollectionID + '/sdc-duplicates')
229+
ApiService.apiAxios.get(ApiRoutes.sdc.SDC_DUPLICATE + '/sdcSchoolCollection/'+ this.$route.params.schoolCollectionID + '/sdc-duplicates')
230230
.then(response => {
231231
this.resolvedDuplicates = response.data?.enrollmentDuplicates?.RESOLVED;
232232
this.resolvedProgramDuplicates = response.data?.programDuplicates?.RESOLVED;

frontend/src/components/sdcCollection/sdcSchoolCollection/ProvincialDuplicatesStep.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export default defineComponent({
179179
},
180180
getProvincialDuplicates(){
181181
this.isLoading = true;
182-
ApiService.apiAxios.get(ApiRoutes.sdc.SDC_DUPLICATE+ '/'+ this.$route.params.schoolCollectionID + '/provincial-duplicates').then(response => {
182+
ApiService.apiAxios.get(ApiRoutes.sdc.SDC_DUPLICATE+ '/sdcSchoolCollection/'+ this.$route.params.schoolCollectionID + '/provincial-duplicates').then(response => {
183183
this.nonAllowableDuplicates = response.data?.enrollmentDuplicates?.NON_ALLOW;
184184
this.allowableDuplicates = response.data?.enrollmentDuplicates?.ALLOWABLE;
185185
this.resolvedDuplicates = response.data?.enrollmentDuplicates?.RESOLVED;

frontend/src/components/sdcCollection/sdcSchoolCollection/StepFourDuplicatesProcessing.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export default {
301301
},
302302
getSchoolDuplicates(){
303303
this.isLoading = true;
304-
ApiService.apiAxios.get(ApiRoutes.sdc.SDC_DUPLICATE + '/'+ this.sdcSchoolCollectionID + '/duplicates')
304+
ApiService.apiAxios.get(ApiRoutes.sdc.SDC_DUPLICATE + '/sdcSchoolCollection/'+ this.sdcSchoolCollectionID + '/duplicates')
305305
.then(response => {
306306
this.duplicateStudents = response.data;
307307
}).catch(error => {

0 commit comments

Comments
 (0)