Skip to content

Commit

Permalink
fix(postgres): query bug, one too many args (#314)
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriel Guerra <[email protected]>
  • Loading branch information
guergabo and Gabriel Guerra committed May 7, 2024
1 parent 6bb17c4 commit cc44852
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/app/subsystems/aio/store/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,11 @@ const (
($1::int IS NULL OR sort_id < $1) AND
id LIKE $2 AND
state & $3 != 0 AND
$4::text IS NULL AND
($5::jsonb IS NULL OR tags @> $5)
($4::jsonb IS NULL OR tags @> $4)
ORDER BY
sort_id DESC
LIMIT
$6`
$5`

PROMISE_INSERT_STATEMENT = `
INSERT INTO promises
Expand Down

0 comments on commit cc44852

Please sign in to comment.