mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 15:51:41 +00:00
fix: params a veces es un array??
This commit is contained in:
parent
5822a9b661
commit
6f363f2c35
1 changed files with 5 additions and 1 deletions
|
@ -84,10 +84,14 @@ class GitlabNotifierJob < ApplicationJob
|
|||
exception.class.name,
|
||||
Digest::SHA1.hexdigest(exception.message),
|
||||
Digest::SHA1.hexdigest(backtrace&.first.to_s),
|
||||
Digest::SHA1.hexdigest(options.dig(:data, :params, 'errors').to_s)
|
||||
Digest::SHA1.hexdigest(errors.to_s)
|
||||
].join('/')
|
||||
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
|
||||
#
|
||||
# @see BacktraceJob
|
||||
|
|
Loading…
Reference in a new issue