Skip to content

Commit

Permalink
Merge branch 'master' into fix/EDX-1859
Browse files Browse the repository at this point in the history
  • Loading branch information
mightycox authored Oct 11, 2023
2 parents ea55ebf + e0202a8 commit 6362e18
Show file tree
Hide file tree
Showing 5 changed files with 174 additions and 77 deletions.
8 changes: 6 additions & 2 deletions backend/src/components/edx/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ async function districtUserActivationInvite(req, res) {
}

const payload = {
...req.body
...req.body,
edxUserExpiryDate: req.body.edxUserExpiryDate
};
try {
const response = await utils.postData(token, config.get('server:edx:districtUserActivationInviteURL'), payload, null, utils.getUser(req).idir_username);
Expand All @@ -536,7 +537,8 @@ async function schoolUserActivationInvite(req, res) {
}

const payload = {
...req.body
...req.body,
edxUserExpiryDate: req.body.edxUserExpiryDate
};
try {
const response = await utils.postData(token, config.get('server:edx:schoolUserActivationInviteURL'), payload, null, utils.getUser(req).idir_username);
Expand Down Expand Up @@ -580,6 +582,7 @@ async function updateEdxUserSchoolRoles(req, res) {

selectedUserSchool.updateDate = null;
selectedUserSchool.createDate = null;
selectedUserSchool.expiryDate = req.body.params.expiryDate;

const result = await utils.putData(token, `${config.get('server:edx:edxUsersURL')}/${selectedUserSchool.edxUserID}/school`, selectedUserSchool, userInfo.idir_username);
return res.status(HttpStatus.OK).json(result);
Expand Down Expand Up @@ -621,6 +624,7 @@ async function updateEdxUserDistrictRoles(req, res) {

selectedUserDistrict.updateDate = null;
selectedUserDistrict.createDate = null;
selectedUserDistrict.expiryDate = req.body.params.expiryDate;

const result = await utils.putData(token, `${config.get('server:edx:edxUsersURL')}/${selectedUserDistrict.edxUserID}/district`, selectedUserDistrict, userInfo.idir_username);
return res.status(HttpStatus.OK).json(result);
Expand Down
158 changes: 93 additions & 65 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6362e18

Please sign in to comment.