Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
0da7ec6f
Commit
0da7ec6f
authored
Oct 23, 2019
by
Robert Czechowski
Browse files
Postgres connector fix: session_user -> session in get_session_or_new()
parent
ad9faaf0
Pipeline
#243
passed with stages
in 11 minutes and 11 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/db_conn_postgres.rs
View file @
0da7ec6f
...
...
@@ -156,7 +156,7 @@ impl MedalConnection for Connection {
// TODO: Factor this out in own function
// TODO: Should a new session key be generated every time?
self
.execute
(
"UPDATE session
_user
SET session_token = $1 WHERE session_token = $2"
,
"UPDATE session SET session_token = $1 WHERE session_token = $2"
,
&
[
&
Option
::
<
String
>
::
None
,
&
key
])
.unwrap
();
self
.new_session
(
&
key
)
})
...
...
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