From cbe61a7c0b50e588ffad8c7c04166cb15ac25d8d Mon Sep 17 00:00:00 2001 From: Stephen MacVicar Date: Fri, 1 Dec 2023 13:59:07 -0500 Subject: [PATCH] change add_tag params --- lib/inferno/repositories/requests.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/inferno/repositories/requests.rb b/lib/inferno/repositories/requests.rb index 9b69b7e2d9..56d745ce67 100644 --- a/lib/inferno/repositories/requests.rb +++ b/lib/inferno/repositories/requests.rb @@ -12,7 +12,7 @@ def create(params) headers = create_headers(request, params) params[:tags]&.each do |tag| - request.add_tag(name: tag, request_id: request.index) + request.add_tag(tag) end build_entity( @@ -120,8 +120,8 @@ def before_create super end - def add_tag(tag_hash) - tag = Tags::Model.find_or_create(tag_hash.slice(:name)) + def add_tag(tag_name) + tag = Tags::Model.find_or_create(name: tag_name) Inferno::Application['db.connection'][:requests_tags].insert( tags_id: tag.id,