Skip to content

Commit

Permalink
Actually use email parameter in whitelist_email fn
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarflakstad committed Jul 4, 2024
1 parent 59580d2 commit ebbc3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/users/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub async fn whitelist_email(pool: &PgPool, email: &str) -> crate::Result<Whitel
Ok(sqlx::query_as!(
WhitelistedEmail,
"insert into whitelisted_emails (email, approved) values ($1, true) returning *",
"my-email@email.com",
email,
)
.fetch_one(pool)
.await?)
Expand Down

0 comments on commit ebbc3bb

Please sign in to comment.