Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef0f1bc

Browse files
committed
update join comment
1 parent 754d6c1 commit ef0f1bc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

coderd/database/queries.sql.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/insights.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ SELECT
280280
FROM
281281
template_usage_stats AS tus, jsonb_each(app_usage_mins) AS app_usage
282282
LEFT JOIN LATERAL (
283-
-- Fetch the latest app info for each app based on slug and template.
283+
-- The joins in this query are necessary to associate an app with a
284+
-- template, we use this to get the app metadata like display name
285+
-- and icon.
284286
SELECT
285287
app.display_name,
286288
app.slug

0 commit comments

Comments
 (0)