mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-02-16 08:24:50 +00:00
Don't migrate categories that do not exists anymore.
This commit is contained in:
parent
1a3928b803
commit
5cfa7f913d
@ -44,6 +44,8 @@ module Jobs
|
||||
row.key.to_i
|
||||
end
|
||||
|
||||
next if !category_id.nil? && !Category.exists?(id: category_id)
|
||||
|
||||
valid_tags = []
|
||||
valid_tags = Tag.where(name: rule[:tags]).pluck(:name) if rule[:tags]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user