tasks/entities.rake in flapjack-1.2.0rc2 vs tasks/entities.rake in flapjack-1.2.0

- old
+ new

@@ -127,13 +127,13 @@ entity = id.nil? ? nil : Flapjack::Data::Entity.find_by_id(id) if id.nil? || entity.nil? id ||= SecureRandom.uuid - redis.multi - redis.hset('all_entity_ids_by_name', name, id) - redis.hset('all_entity_names_by_id', id, name) - redis.exec + redis.multi do + multi.hset('all_entity_ids_by_name', name, id) + multi.hset('all_entity_names_by_id', id, name) + end puts "Set id '#{id}' for entity #{name}'" elsif entity.name.eql?(name) puts "'#{name}' entity already exists with the provided id" else # entity exists, name doesn't match -- merge old data \ No newline at end of file