Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
deb9d24f
Commit
deb9d24f
authored
Sep 29, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "test"
This reverts commit
f1ba9741
.
parent
cafb1b3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ygopro-server.coffee
ygopro-server.coffee
+2
-2
ygopro-server.js
ygopro-server.js
+6
-0
No files found.
ygopro-server.coffee
View file @
deb9d24f
...
@@ -1265,8 +1265,8 @@ if settings.modules.mycard_auth and process.env.MYCARD_AUTH_DATABASE
...
@@ -1265,8 +1265,8 @@ if settings.modules.mycard_auth and process.env.MYCARD_AUTH_DATABASE
client
.
query
'SELECT username, id from users'
,
(
error
,
result
)
->
client
.
query
'SELECT username, id from users'
,
(
error
,
result
)
->
throw
error
if
error
throw
error
if
error
done
()
done
()
#
for row in result.rows
for
row
in
result
.
rows
#
users_cache[row.username] = row.id
users_cache
[
row
.
username
]
=
row
.
id
console
.
log
(
"users loaded"
,
_
.
keys
(
users_cache
).
length
)
console
.
log
(
"users loaded"
,
_
.
keys
(
users_cache
).
length
)
return
return
return
return
...
...
ygopro-server.js
View file @
deb9d24f
...
@@ -1535,10 +1535,16 @@
...
@@ -1535,10 +1535,16 @@
throw
error
;
throw
error
;
}
}
client
.
query
(
'
SELECT username, id from users
'
,
function
(
error
,
result
)
{
client
.
query
(
'
SELECT username, id from users
'
,
function
(
error
,
result
)
{
var
k
,
len
,
ref
,
row
;
if
(
error
)
{
if
(
error
)
{
throw
error
;
throw
error
;
}
}
done
();
done
();
ref
=
result
.
rows
;
for
(
k
=
0
,
len
=
ref
.
length
;
k
<
len
;
k
++
)
{
row
=
ref
[
k
];
users_cache
[
row
.
username
]
=
row
.
id
;
}
console
.
log
(
"
users loaded
"
,
_
.
keys
(
users_cache
).
length
);
console
.
log
(
"
users loaded
"
,
_
.
keys
(
users_cache
).
length
);
});
});
});
});
...
...
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