mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-25 00:29:30 -05:00
eeff092ead
Now that post numbers are monotonically increasing we should not need this job Stuff should just self correct as users browser along Corrected the job not to reset the disimissed posts in case we need it
14 lines
347 B
Ruby
14 lines
347 B
Ruby
module Jobs
|
|
# various consistency checks
|
|
class EnsureDbConsistency < Jobs::Scheduled
|
|
every 12.hours
|
|
|
|
def execute(args)
|
|
UserVisit.ensure_consistency!
|
|
Group.refresh_automatic_groups!
|
|
Notification.ensure_consistency!
|
|
UserAction.ensure_consistency!
|
|
UserStat.update_view_counts(13.hours.ago)
|
|
end
|
|
end
|
|
end
|