Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
da61fe34
Commit
da61fe34
authored
May 05, 2021
by
Rosanny Sihombing
Browse files
remove an obsolete method
parent
3dbef16c
Changes
1
Hide whitespace changes
Inline
Side-by-side
routes/methods.js
View file @
da61fe34
...
...
@@ -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
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment