Skip to content

Commit

Permalink
Merge pull request #2483 from fluidity-money/develop-fix-tracked-winn…
Browse files Browse the repository at this point in the history
…ings-upsert

Fix composite key usage
  • Loading branch information
af-afk authored Jan 10, 2024
2 parents 0feb7c8 + b25bc0c commit d225b78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/databases/timescale/lootboxes/rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ func UpdateOrInsertAmountsRewarded(network_ network.BlockchainNetwork, lootboxCu
$4,
$5,
$6,
$7
CURRENT_TIMESTAMP
)
ON CONFLICT (id)
ON CONFLICT (network, epoch, token_short_name, winner, application)
DO UPDATE SET
amount_earned = amount_earned + $4,
amount_earned = lootbox_amounts_rewarded.amount_earned + $4,
last_updated = CURRENT_TIMESTAMP`,

TableLootboxAmountsRewarded,
Expand Down

0 comments on commit d225b78

Please sign in to comment.