diff --git a/qw-site/src/main.rs b/qw-site/src/main.rs index 8a15903..db5d697 100644 --- a/qw-site/src/main.rs +++ b/qw-site/src/main.rs @@ -150,7 +150,8 @@ WHERE account.name ILIKE $1", .query_opt( " SELECT id FROM stream_session -WHERE account_id = $1 AND stop_time IS NULL", +WHERE account_id = $1 AND stop_time IS NULL +LIMIT 1", &[&id], ) .await?;