Skip to content

Commit

Permalink
fix socket panic
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmanczak committed Jul 13, 2024
1 parent 8f183ee commit 68441f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/splash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct Splash {

async fn random_splash() -> Response {
let conn = setup::initialise_sqlite_connection();
let query = "SELECT splash FROM splashes ORDER BY RANDOM() LIMIT 1";
let query = "SELECT * FROM splashes ORDER BY RANDOM() LIMIT 1";

let mut statement = conn.prepare(query).unwrap();

Expand Down

0 comments on commit 68441f5

Please sign in to comment.