discourse/lib/jobs/ensure_db_consistency.rb

10 lines
216 B
Ruby
Raw Normal View History

module Jobs
# checks to see if any users need to be promoted
class EnsureDbConsistency < Jobs::Base
def execute(args)
TopicUser.ensure_consistency!
UserVisit.ensure_consistency!
end
end
end