Skip to content

Commit

Permalink
Merge pull request #4225 from evanrolfe/fix/delayed_job_status
Browse files Browse the repository at this point in the history
[webui][api] fix delayed job stats script
  • Loading branch information
Ana06 committed Dec 14, 2017
2 parents 469d216 + 58c6d8b commit 4203703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/script/delayed_job_stats.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
puts "-----------EVENT-STATS------------"
Event::PROJECT_CLASSES | Event::PACKAGE_CLASSES
event_types = Event::PROJECT_CLASSES | Event::PACKAGE_CLASSES
oldest_date = 10.days.ago
project_logged = Event::Base.where(project_logged: false, eventtype: event_types).where(["created_at > ?", oldest_date]).count
mails_sent = Event::Base.where(mails_sent: false).count
Expand Down

0 comments on commit 4203703

Please sign in to comment.