Remove unneeded delays in InsertSupporter

This commit is contained in:
Eric Schultz 2019-11-07 15:48:13 -06:00
parent ca63818181
commit 626e01b035

View file

@ -82,8 +82,8 @@ module InsertSupporter
supp_cols = data.select { |key, _val| !key.match(/^field_/) && !key.match(/^tag_/) }
supporter = create_or_update(np_id, supp_cols)
InsertTagJoins.delay.find_or_create(np_id, [supporter['id']], tags) if tags.any?
InsertCustomFieldJoins.delay.find_or_create(np_id, [supporter['id']], fields) if fields.any?
InsertTagJoins.find_or_create(np_id, [supporter['id']], tags) if tags.any?
InsertCustomFieldJoins.find_or_create(np_id, [supporter['id']], fields) if fields.any?
supporter
end