5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-02 16:06:07 +00:00

usar el id del sitio como dimensión

This commit is contained in:
f 2022-04-30 16:38:16 -03:00
parent 92cd2ac052
commit 756fb8f1cb

View file

@ -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