Remove unneeded delays in InsertSupporter
This commit is contained in:
parent
ca63818181
commit
626e01b035
1 changed files with 2 additions and 2 deletions
|
@ -82,8 +82,8 @@ module InsertSupporter
|
||||||
supp_cols = data.select { |key, _val| !key.match(/^field_/) && !key.match(/^tag_/) }
|
supp_cols = data.select { |key, _val| !key.match(/^field_/) && !key.match(/^tag_/) }
|
||||||
supporter = create_or_update(np_id, supp_cols)
|
supporter = create_or_update(np_id, supp_cols)
|
||||||
|
|
||||||
InsertTagJoins.delay.find_or_create(np_id, [supporter['id']], tags) if tags.any?
|
InsertTagJoins.find_or_create(np_id, [supporter['id']], tags) if tags.any?
|
||||||
InsertCustomFieldJoins.delay.find_or_create(np_id, [supporter['id']], fields) if fields.any?
|
InsertCustomFieldJoins.find_or_create(np_id, [supporter['id']], fields) if fields.any?
|
||||||
|
|
||||||
supporter
|
supporter
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue