Skip to content

Commit

Permalink
Merge pull request #1918 from bcgov/fix/dupeResolution
Browse files Browse the repository at this point in the history
Fix for "remove" dupe resolution
  • Loading branch information
mightycox authored Sep 12, 2024
2 parents ea2500a + 4b38cfa commit bc0baea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/components/permissionUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ async function checkSdcDuplicateAccess(req, res, next) {
message: 'Token is unavailable.'
});
}
res.locals.sdcDuplicate = await getData(token, `${config.get('sdc:schoolCollectionURL')}/duplicate/${req.body.duplicate.sdcDuplicateID}`, req.session?.correlationID);
res.locals.sdcDuplicate = await getData(token, `${config.get('sdc:sdcDuplicateURL')}/${req.body.duplicate.sdcDuplicateID}`, req.session?.correlationID);
if(req.body.duplicate?.updateDate !== res.locals.sdcDuplicate?.updateDate){
return res.status(HttpStatus.CONFLICT).json({
status: HttpStatus.CONFLICT,
Expand Down

0 comments on commit bc0baea

Please sign in to comment.