Skip to content

Commit

Permalink
Merge branch 'main' into BC-5041-remove-consent-notice
Browse files Browse the repository at this point in the history
  • Loading branch information
davwas authored Sep 22, 2023
2 parents af45148 + 8251a45 commit 8ee91f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions controllers/homework.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,7 @@ const getDeleteHandler = (service, redirectToReferer) => (req, res, next) => {
if (redirectToReferer) {
redirectHelper.safeBackRedirect(req, res);
} else {
res.sendStatus(200);
res.redirect(`/${service}`);
res.redirect(200, `/${service}`);
}
}).catch((err) => {
next(err);
Expand Down
3 changes: 1 addition & 2 deletions controllers/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,9 @@ router.get('/username/:pseudonym', async (req, res, next) => {
if (Configuration.get('FEATURE_CTL_TOOLS_TAB_ENABLED')) {
const pseudonymResponse = await api(req, { version: 'v3' })
.get(`/pseudonyms/${req.params.pseudonym}`);

const userResponse = await api(req)
.get('/users', {
qs: { id: pseudonymResponse.userId },
qs: { _id: pseudonymResponse.userId },
$limit: 1,
});
if (userResponse.data.length) {
Expand Down

0 comments on commit 8ee91f3

Please sign in to comment.