Skip to content

Commit

Permalink
adding analytics.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Grato committed Nov 27, 2023
1 parent 204d70f commit 21437fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/dash.ex
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ defmodule Dash do
from(hub in Hub,
join: stat in assoc(hub, :hub_stats),
where: stat.measured_at >= ^start_date and stat.measured_at <= ^end_date,
select: hub
)

Repo.all(query)
Expand Down
2 changes: 1 addition & 1 deletion lib/dash/hub_stat.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule Dash.HubStat do
schema "hub_stats" do
field :measured_at, :utc_datetime
field :storage_mb, :integer
belongs_to :hub, Hub, foreign_key: :hub_id
belongs_to :hub, Hub, references: :hub_id
end

defp hub_stat_for_hub_id(hub_id, measured_at) do
Expand Down

0 comments on commit 21437fd

Please sign in to comment.