Skip to content

Commit

Permalink
debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Jun 21, 2024
1 parent 291b3ae commit 831f414
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handlers/customHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +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(x);

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
const newToken = {};

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
newToken.userType = x[0].userType || 'Null';

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.userFilter = x[0].userFilter || ['Public'];

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 Down

0 comments on commit 831f414

Please sign in to comment.