From 756fb8f1cbc32561bfd1433b0698267024d870ff Mon Sep 17 00:00:00 2001 From: f Date: Sat, 30 Apr 2022 16:38:16 -0300 Subject: [PATCH] =?UTF-8?q?usar=20el=20id=20del=20sitio=20como=20dimensi?= =?UTF-8?q?=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/stats_controller.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/controllers/stats_controller.rb b/app/controllers/stats_controller.rb index 9a8a345d..3e1ec76b 100644 --- a/app/controllers/stats_controller.rb +++ b/app/controllers/stats_controller.rb @@ -60,12 +60,7 @@ class StatsController < ApplicationController def resources return unless stale? [last_stat, interval, resource, period] - options = { - interval: interval, - dimensions: { - deploy_id: @site.deploys.where(type: 'DeployLocal').pluck(:id).first - } - } + options = { interval: interval, dimensions: { site_id: site.id } } render json: rollup_scope.series(resource, **options) end