From faf1f67cef6b92af6dec8b73806cf30c82f97dd9 Mon Sep 17 00:00:00 2001 From: Rabbit Date: Sun, 26 Jan 2025 18:02:18 +0800 Subject: [PATCH] feat: update fiber statistic detail --- app/controllers/api/v2/fiber/statistics_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v2/fiber/statistics_controller.rb b/app/controllers/api/v2/fiber/statistics_controller.rb index 72b21ea33..2a745cdf8 100644 --- a/app/controllers/api/v2/fiber/statistics_controller.rb +++ b/app/controllers/api/v2/fiber/statistics_controller.rb @@ -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