Skip to content

Commit 5d74ac8

Browse files
committed
Fix the device count timeline query
1 parent 8683e14 commit 5d74ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/nerves_hub/insights.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ defmodule NervesHub.Insights do
3434
device_counts_query =
3535
DeviceConnection
3636
|> select([dc], %{
37-
device_count: count(dc.id, :distinct)
37+
device_count: count(dc.device_id, :distinct)
3838
})
3939
|> where([dc], dc.product_id == ^product.id)
4040
|> where(

0 commit comments

Comments
 (0)