Skip to content

Commit

Permalink
fix: udt hourly statistic api response
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz committed Dec 13, 2024
1 parent e3398fd commit 1b4338c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/controllers/api/v2/rgbpp_hourly_statistics_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def index
render json: {
data: rgbpp_statistics.map do |statistic|
{
total_count: statistic.total_count,
created_at_unixtimestamp: statistic.created_at_unixtimestamp,
total_count: statistic.total_count.to_s,
created_at_unixtimestamp: statistic.created_at_unixtimestamp.to_s,
}
end,
}
Expand Down
8 changes: 4 additions & 4 deletions app/controllers/api/v2/udt_hourly_statistics_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ def show
render json: {
data: hourly_statistics.map do |statistic|
{
ckb_transactions_count: statistic.ckb_transactions_count,
amount: statistic.amount,
holders_count: statistic.holders_count,
created_at_unixtimestamp: statistic.created_at_unixtimestamp,
ckb_transactions_count: statistic.ckb_transactions_count.to_s,
amount: statistic.amount.to_s,
holders_count: statistic.holders_count.to_s,
created_at_unixtimestamp: statistic.created_at_unixtimestamp.to_s,
}
end,
}
Expand Down

0 comments on commit 1b4338c

Please sign in to comment.