5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 10:41:41 +00:00

fix: solo permitimos un hash de opciones

This commit is contained in:
f 2023-03-22 09:58:00 -03:00
parent 706ff80b18
commit 1230dc2e96

View file

@ -293,7 +293,7 @@ class GitlabNotifierJob < ApplicationJob
# @param :options [Hash] # @param :options [Hash]
# @return [Hash] # @return [Hash]
def fix_options(options) def fix_options(options)
options = { data: options } if options.is_a? Array options = { data: options } unless options.is_a? Hash
options[:data] ||= {} options[:data] ||= {}
options[:data][:params] ||= {} options[:data][:params] ||= {}