allow users to sign up multiple times without throwing a 500

This commit is contained in:
Joseph Lyons 2022-11-15 20:04:56 -05:00
parent 275f0ae492
commit c3cf056fc5
3 changed files with 35 additions and 22 deletions

View file

@ -338,7 +338,7 @@ async fn create_signup(
Json(params): Json<Signup>,
Extension(app): Extension<Arc<AppState>>,
) -> Result<()> {
app.db.create_signup(params).await?;
app.db.create_signup(&params).await?;
Ok(())
}