mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 07:48:02 +08:00
FIX: Periodically ensure consistency of categories. (#7663)
This commit is contained in:

committed by
Régis Hanol

parent
c131903e56
commit
f63b8bb79d
@ -428,7 +428,7 @@ end
|
||||
|
||||
def create_category_definitions
|
||||
log "Creating category definitions"
|
||||
Category.where(topic_id: nil).each(&:create_category_definition)
|
||||
Category.ensure_consistency!
|
||||
end
|
||||
|
||||
def log(message)
|
||||
|
Reference in New Issue
Block a user