File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -466,10 +466,6 @@ const filterUsers = async (req, res) => {
466
466
467
467
// one time script function to perform the migration - adding github_user_id field to the document
468
468
const migrate = async ( req , res ) => {
469
- // pat yet to be generated
470
- const authToken = `${ config . get ( "githubOauth.patToken" ) } ` ;
471
- // converting the `authToken` string into Base64 format
472
- const encodedToken = Buffer . from ( `${ authToken } ` ) . toString ( "base64" ) ;
473
469
const usersNotFound = [ ] ;
474
470
let countUserNotFound = 0 ;
475
471
try {
@@ -491,7 +487,7 @@ const migrate = async (req, res) => {
491
487
. get ( `https://api.github.com/users/${ githubUsername } ` , {
492
488
headers : {
493
489
"Content-Type" : "application/json" ,
494
- auth : `Bearer ${ encodedToken } ` ,
490
+ auth : `Bearer <Auth Token> ` ,
495
491
} ,
496
492
} )
497
493
. then ( ( response ) => {
You can’t perform that action at this time.
0 commit comments