mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: use nil map on agent stats to check if report interval should be returned (#6479)
See https://github.com/coder/coder/actions/runs/4350638262/jobs/7601537088
This commit is contained in:
@@ -29,7 +29,8 @@ SELECT
|
||||
FROM
|
||||
workspace_agent_stats
|
||||
WHERE
|
||||
template_id = $1
|
||||
template_id = $1 AND
|
||||
connection_count > 0
|
||||
GROUP BY
|
||||
date, user_id
|
||||
ORDER BY
|
||||
@@ -41,6 +42,8 @@ SELECT
|
||||
user_id
|
||||
FROM
|
||||
workspace_agent_stats
|
||||
WHERE
|
||||
connection_count > 0
|
||||
GROUP BY
|
||||
date, user_id
|
||||
ORDER BY
|
||||
|
||||
Reference in New Issue
Block a user