mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 10:06:32 +08: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
15 lines
347 B
Ruby
15 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
|