Skip to content

Commit

Permalink
Merge pull request #24 from bnb-chain/fix
Browse files Browse the repository at this point in the history
fix: insert into listings table
  • Loading branch information
cosinlink authored May 17, 2024
2 parents 055b61b + 900aa1b commit 99274cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor/bsc_block_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (p *BscBlockProcessor) handleEventList(blockHeight uint64, l types.Log) (st
util.Logger.Errorf("processor: %s, fail to find item %d err: %s, write to listing table", p.Name(), event.GroupId.Int64(), err)

// insert into a temp table: listing
rawSql := fmt.Sprintf("insert into listing (price, list_bsc_height, group_id) values (%s, %d, %d)",
rawSql := fmt.Sprintf("insert into listings (price, list_bsc_height, group_id) values (%s, %d, %d)",
event.Price, blockHeight, event.GroupId)
return rawSql, nil
}
Expand Down

0 comments on commit 99274cf

Please sign in to comment.