Skip to content

Commit

Permalink
chore: not count approve and revoke in cw721 activity (#458) (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangtv49 committed Nov 7, 2023
1 parent 3be12e5 commit d326636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/cw721/cw721.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export default class Cw721HandlerService extends BullableService {
.count('cw721_activity.id AS total_activity')
.select(
knex.raw(
"SUM( CASE WHEN cw721_activity.height >= ? AND cw721_activity.action != 'instantiate' THEN 1 ELSE 0 END ) AS transfer_24h",
"SUM( CASE WHEN cw721_activity.height >= ? AND cw721_activity.action IN ('mint', 'burn', 'send_nft', 'transfer_nft') THEN 1 ELSE 0 END ) AS transfer_24h",
blockSince24hAgo[0]?.height
)
)
Expand Down

0 comments on commit d326636

Please sign in to comment.