fix: minor mistakes.

This commit is contained in:
Waris Aiemworawutikul
2024-07-23 18:04:34 +07:00
parent 5574db8691
commit 43a85c5171
3 changed files with 4 additions and 4 deletions

View File

@@ -15,10 +15,10 @@ CREATE TABLE IF NOT EXISTS events (
"valid" BOOLEAN NOT NULL,
"action" INTEGER NOT NULL,
"raw_message" BYTEA NOT NULL,
"parsed_message" JSONB NOT NULL,
"parsed_message" JSONB NOT NULL DEFAULT '{}',
"block_timestamp" TIMESTAMP NOT NULL,
"block_hash" TEXT NOT NULL,
"metadata" JSONB NOT NULL
"metadata" JSONB NOT NULL DEFAULT '{}'
);
INSERT INTO events("tx_hash", "block_height", "tx_index",

View File

@@ -47,5 +47,5 @@ LEFT JOIN
WHERE sale_block = $1 AND
sale_tx_index= $2)
AS nodes ON tiers.tier_index = nodes.tier_index
group by tiers.tier_index
GROUP BY tiers.tier_index
ORDER BY tiers.tier_index;

View File

@@ -62,7 +62,7 @@ LEFT JOIN
WHERE sale_block = $1 AND
sale_tx_index= $2)
AS nodes ON tiers.tier_index = nodes.tier_index
group by tiers.tier_index
GROUP BY tiers.tier_index
ORDER BY tiers.tier_index
`