Skip to content

Commit

Permalink
fix: update ft date on supply change (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr authored Dec 17, 2024
1 parent 080176e commit 94b9486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pg/chainhook/chainhook-pg-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class ChainhookPgStore extends BasePgStoreModule {
): Promise<void> {
await sql`
UPDATE tokens
SET total_supply = total_supply + ${delta}
SET total_supply = total_supply + ${delta}, updated_at = NOW()
WHERE smart_contract_id = (SELECT id FROM smart_contracts WHERE principal = ${contract})
AND token_number = 1
`;
Expand Down

0 comments on commit 94b9486

Please sign in to comment.