mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-25 17:54:55 +01:00
parent
d8ef5dd93a
commit
f8233bcb63
@ -1 +0,0 @@
|
|||||||
create index concurrently if not exists "history_idx" on history using btree (user_id, timestamp);
|
|
@ -99,7 +99,7 @@ impl Database for Postgres {
|
|||||||
#[instrument(skip_all)]
|
#[instrument(skip_all)]
|
||||||
async fn get_session_user(&self, token: &str) -> Result<User> {
|
async fn get_session_user(&self, token: &str) -> Result<User> {
|
||||||
sqlx::query_as::<_, User>(
|
sqlx::query_as::<_, User>(
|
||||||
"select users.id, users.username, user.email, users.password from users
|
"select users.id, users.username, users.email, users.password from users
|
||||||
inner join sessions
|
inner join sessions
|
||||||
on users.id = sessions.user_id
|
on users.id = sessions.user_id
|
||||||
and sessions.token = $1",
|
and sessions.token = $1",
|
||||||
|
Loading…
Reference in New Issue
Block a user