Skip to content

Commit

Permalink
Fix query and comment origin of the rows
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Dec 11, 2023
1 parent 4a827c2 commit a4f37ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

CREATE TABLE solana_intermediate_winners (
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
winning_signature VARCHAR NOT NULL,
payout_signature VARCHAR NOT NULL
winning_signature VARCHAR NOT NULL, -- corresponds to winners send_transaction_hash
payout_signature VARCHAR NOT NULL -- corresponds to winners transaction_hash
);

-- migrate:down
Expand Down
2 changes: 1 addition & 1 deletion lib/databases/postgres/solana/intermediate-winners.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func GetIntermediateWinner(payoutSignature string) (winningSignature string) {
statementText := fmt.Sprintf(
`SELECT winning_signature
FROM %s
WHERE payout_signature = $;`,
WHERE payout_signature = $1;`,

TableIntermediateWinners,
)
Expand Down

0 comments on commit a4f37ce

Please sign in to comment.