FIX: do not attempt to unassign the deleted topic
This commit is contained in:
parent
e7d38c905b
commit
390a08a196
|
@ -167,6 +167,8 @@ SQL
|
|||
@topic.save!
|
||||
|
||||
post = @topic.posts.where(post_number: 1).first
|
||||
return unless post.present?
|
||||
|
||||
post.publish_change_to_clients!(:revised, reload_topic: true)
|
||||
|
||||
assigned_user = User.find_by(id: assigned_to_id)
|
||||
|
|
Loading…
Reference in New Issue