Skip to content

Commit

Permalink
fix: incorrect query
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSoZRious committed Jun 8, 2023
1 parent 1055ea2 commit ae69a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl SubmisisonRepository {
query_args.reserve(1usize, 4);
query_args.add(arg0);
let row = query_with::<Postgres, _>(
"SELECT id, groups, score, status FROM submission WHERE id + 1 > $1",
"SELECT id, groups, score, status FROM submission WHERE id = $1",
query_args,
)
.fetch_one(&self.pool)
Expand Down

0 comments on commit ae69a73

Please sign in to comment.