fix: Fix workspace count to exclude deleted workspaces (#2916)

This commit is contained in:
Steven Masley authored and GitHub committed 2022-07-12 12:52:28 -05:00
1 parent 61c52b3090
commit c07a45e610
4 files changed
+37 -6

No files matched your search

+2
View File
@@ -83,6 +83,8 @@ FROM
workspaces
WHERE
template_id = ANY(@ids :: uuid [ ])
-- Ignore deleted workspaces
AND deleted != true
GROUP BY
template_id;