Skip to content

Commit b4cf748

Browse files
committed
Fix CHECK_MON_001 query
1 parent 7281732 commit b4cf748

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/App/Commands/Alerting.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ extension Alerting {
164164
r.name AS "repository",
165165
p.status,
166166
p.processing_stage,
167-
r.updated_at
167+
p.updated_at
168168
FROM
169169
repositories r
170170
JOIN packages p ON r.package_id = p.id
171171
WHERE
172-
r.updated_at < now() - INTERVAL \(literal: "\(timePeriod.hours) hours")
172+
p.updated_at < now() - INTERVAL \(literal: "\(timePeriod.hours) hours")
173173
ORDER BY
174-
updated_at
174+
p.updated_at
175175
""")
176176
.all(decoding: Mon001Row.self)
177177
return rows.isValid()

0 commit comments

Comments
 (0)