Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 0f00215

Browse files
authored
just a lil more dbug
1 parent 5eca1fc commit 0f00215

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controllers/GithubController.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,13 @@ async function getTeamRegistrationUrl(req) {
109109
*/
110110
async function addUserToTeam(req, res) {
111111
const identifier = req.params.identifier;
112+
console.log(`addUserToTeam called for ${identifier}`); /* eslint-disable-line no-console */
112113
// validate the identifier
113114
await helper.ensureExists(OwnerUserTeam, { identifier });
114115

115116
// store identifier to session, to be compared in callback
116117
req.session.identifier = identifier;
117-
118+
console.log(`addUserToTeam OwnerUserTeam ${JSON.stringify(OwnerUserTeam)}`); /* eslint-disable-line no-console */
118119
// redirect to GitHub OAuth
119120
const callbackUri = `${config.WEBSITE}/api/${config.API_VERSION}/github/normaluser/callback`;
120121
res.redirect(`http://github.com/login/oauth/authorize?client_id=${

0 commit comments

Comments
 (0)