Skip to content

Commit

Permalink
feat: update fiber statistic detail
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz committed Jan 26, 2025
1 parent dc0270f commit faf1f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v2/fiber/statistics_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def show
expires_in 15.minutes, public: true, stale_while_revalidate: 5.minutes, stale_if_error: 5.minutes
statistics = FiberStatistic.filter_by_indicator(params[:id]).order(created_at_unixtimestamp: :desc).limit(14)

render json: { data: statistics.map { _1.attributes.transform_values(&:to_s) } }
render json: { data: statistics.map { _1.attributes.except("id").transform_values(&:to_s) } }
end
end
end
Expand Down

0 comments on commit faf1f67

Please sign in to comment.