fix NoMethodError in mappings after_created when synapse's topic1/topic2 are nil
This commit is contained in:
parent
328c1a14f3
commit
78acd7e0b0
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ class Mapping < ApplicationRecord
|
|||
'map_' + map.id.to_s,
|
||||
type: 'synapseAdded',
|
||||
synapse: mappable.filtered,
|
||||
topic1: mappable.topic1.filtered,
|
||||
topic2: mappable.topic2.filtered,
|
||||
topic1: mappable.topic1&.filtered,
|
||||
topic2: mappable.topic2&.filtered,
|
||||
mapping_id: id
|
||||
)
|
||||
meta = { 'mapping_id': id }
|
||||
|
|
Loading…
Reference in a new issue