Skip to content

Commit

Permalink
Merge pull request #112 from blackboard/bugfix/109-fix-proctoring-dis…
Browse files Browse the repository at this point in the history
…play

update shape of return
  • Loading branch information
ShannonH authored Oct 9, 2021
2 parents 7aaa1bb + 9a2e20f commit dfa26c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,20 +294,20 @@ module.exports = function (app) {
app.get('/getProctoringPayloadData', async (req, res) => {
const nonce = req.query.nonce;
console.log(`--------------------\ngetProctoringPayloadData nonce: ${nonce}`);
const jwtPayload = await db.getAuthFromState(nonce).auth['jwt'];
const jwtPayload = await db.getAuthFromState(nonce).jwt;
res.send(jwtPayload);
});

app.post('/buildProctoringStartReturnPayload', async (req, res) => {
const nonce = req.body.nonce;
const jwtPayload = await db.getAuthFromState(nonce).auth['jwt'];
const jwtPayload = await db.getAuthFromState(nonce).jwt;
buildProctoringStartReturnPayload(req, res, jwtPayload);
res.redirect('/proctoring_start_actions_view?nonce=${nonce}');
});

app.post('/buildProctoringEndReturnPayload', async (req, res) => {
const nonce = req.body.nonce;
const jwtPayload = await db.getAuthFromState(nonce).auth['jwt'];
const jwtPayload = await db.getAuthFromState(nonce).jwt;
buildProctoringEndReturnPayload(req, res, jwtPayload);
res.redirect('/proctoring_end_actions_view?nonce=${nonce}');
});
Expand Down

0 comments on commit dfa26c4

Please sign in to comment.