5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 20:36:21 +00:00

fix: params a veces es un array??

This commit is contained in:
f 2023-03-14 16:16:46 -03:00
parent 5822a9b661
commit 6f363f2c35

View file

@ -84,10 +84,14 @@ class GitlabNotifierJob < ApplicationJob
exception.class.name, exception.class.name,
Digest::SHA1.hexdigest(exception.message), Digest::SHA1.hexdigest(exception.message),
Digest::SHA1.hexdigest(backtrace&.first.to_s), Digest::SHA1.hexdigest(backtrace&.first.to_s),
Digest::SHA1.hexdigest(options.dig(:data, :params, 'errors').to_s) Digest::SHA1.hexdigest(errors.to_s)
].join('/') ].join('/')
end end
def errors
options.dig(:data, :params, 'errors') if options.dig(:data, :params).is_a? Hash
end
# Define si es una excepción de javascript o local # Define si es una excepción de javascript o local
# #
# @see BacktraceJob # @see BacktraceJob