Commit da61fe34 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

remove an obsolete method

parent 3dbef16c
......@@ -213,18 +213,6 @@ var methods = {
})
},
/* ===== GitLab ===== */
getGitlabId_OBSOLETE: function(userId, callback){
let gitlabUserId
dbconn_OBSOLETE.user.query('SELECT gu.gitlab_userId FROM user_gitlab gu, user u WHERE u.id = "' +userId+'" and gu.user_id = u.id', function (err, rows) {
if (err) {
throw err
}
else if(rows[0]) {
gitlabUserId = rows[0].gitlab_userId
}
callback(gitlabUserId, err)
})
},
getGitlabId: async function(userId) {
try {
let rows = await dbconn.user.promise().query('SELECT gu.gitlab_userId FROM user_gitlab gu, user u WHERE u.id = "' +userId+'" and gu.user_id = u.id')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment