Skip to content

Commit

Permalink
try again?
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Jun 21, 2024
1 parent 831f414 commit 21cc603
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions handlers/customHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ function editOwnUser(db, collection) {

function impersonate() {
return function(req, res, next) {
console.log(req.body.email);
dataHandlers.User.forLogin(req.body.email).then((x)=>{
console.log("here");

Check failure on line 147 in handlers/customHandlers.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Expected indentation of 6 spaces but found 8
console.log(req.body.email);

Check failure on line 148 in handlers/customHandlers.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Expected indentation of 6 spaces but found 8
console.log(x);

Check failure on line 149 in handlers/customHandlers.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Expected indentation of 6 spaces but found 8
const newToken = {};

Check failure on line 150 in handlers/customHandlers.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Expected indentation of 6 spaces but found 8
newToken.userType = x[0].userType || 'Null';

Check failure on line 151 in handlers/customHandlers.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Expected indentation of 6 spaces but found 8
Expand All @@ -155,7 +156,7 @@ function impersonate() {
newToken.data = x[0];

Check failure on line 156 in handlers/customHandlers.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Expected indentation of 6 spaces but found 8
req.data = newToken;
next()
});
}).catch((e) => next(e));
};
}

Expand Down

0 comments on commit 21cc603

Please sign in to comment.