Skip to content

Commit

Permalink
SQLx cannot run this migration OK (#353)
Browse files Browse the repository at this point in the history
And also correct a typo
  • Loading branch information
ellie authored Apr 26, 2022
1 parent d8ef5dd commit f8233bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion atuin-server/migrations/20220426080938_history-index.sql

This file was deleted.

2 changes: 1 addition & 1 deletion atuin-server/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f8233bc

Please sign in to comment.