[Discord] Fix counts for AIBUR report

This commit is contained in:
Earlopain 2024-02-15 17:00:31 +01:00
parent 43ade626e0
commit 192fb2c1ed
No known key found for this signature in database
GPG Key ID: 48860312319ADF61

View File

@ -46,7 +46,7 @@ module DiscordReport
def counting(clazz)
{
pending: clazz.pending.count,
handled: clazz.where(status: %w[approved active processing queued deleted]).where("created_at >= ? AND forum_topic_id IS NOT NULL", 1.day.ago).count,
handled: clazz.where(status: %w[approved active processing queued deleted]).where("updated_at >= ? AND forum_topic_id IS NOT NULL", 1.day.ago).count,
}
end