Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
3 years ago
by
Rosanny Sihombing
Browse files
Options
Download
Email Patches
Plain Diff
remove an obsolete method
parent
3dbef16c
master
MLAB-677
devel
reset-jul13
reset-merge
testing
5 merge requests
!143
updating yml config
,
!91
Prepare prod
,
!90
Testing
,
!89
Testing
,
!81
Mlab 87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
routes/methods.js
+0
-12
routes/methods.js
with
0 additions
and
12 deletions
+0
-12
routes/methods.js
+
0
-
12
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
'
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets