Skip to content

Commit 968bd24

Browse files
committed
TODOs
1 parent f4e34a7 commit 968bd24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

coderd/notifications/reports/generator.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ func reportFailedWorkspaceBuilds(ctx context.Context, logger slog.Logger, db dat
112112
for _, template := range templates {
113113
// 1. Fetch failed builds.
114114
// 2. If failed builds == 0, continue.
115-
// 3. Render the report.
116-
// 4. Fetch template RW users.
117-
// 5. For user := range template admins + RW users:
115+
// 3. Fetch template RW users.
116+
// 4. For user := range template admins + RW users:
118117
// 1. Check if report is enabled for the person.
119118
// 2. Check `report_generator_log`.
120119
// 3. If sent recently, continue
121-
// 4. Send notification
122-
// 5. Upsert into `report_generator_log`.
120+
// 4. Lazy-render the report.
121+
// 5. Send notification
122+
// 6. Upsert into `report_generator_log`.
123123
}
124124

125125
err = db.DeleteOldReportGeneratorLogs(ctx, frequencyDays)

0 commit comments

Comments
 (0)