Skip to content

Commit 94b9486

Browse files
authored
fix: update ft date on supply change (#289)
1 parent 080176e commit 94b9486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pg/chainhook/chainhook-pg-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export class ChainhookPgStore extends BasePgStoreModule {
243243
): Promise<void> {
244244
await sql`
245245
UPDATE tokens
246-
SET total_supply = total_supply + ${delta}
246+
SET total_supply = total_supply + ${delta}, updated_at = NOW()
247247
WHERE smart_contract_id = (SELECT id FROM smart_contracts WHERE principal = ${contract})
248248
AND token_number = 1
249249
`;

0 commit comments

Comments
 (0)