mirror of
https://github.com/atuinsh/atuin.git
synced 2024-12-25 16:39:18 +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)]
|
||||
async fn get_session_user(&self, token: &str) -> Result<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
|
||||
on users.id = sessions.user_id
|
||||
and sessions.token = $1",
|
||||
|
Loading…
Reference in New Issue
Block a user