mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 15:36:22 +00:00
Merge branch 'issue-10031' into panel.sutty.nl
This commit is contained in:
commit
fcf23948df
1 changed files with 4 additions and 2 deletions
|
@ -61,7 +61,7 @@ class GitlabNotifierJob < ApplicationJob
|
||||||
Rails.cache.write(cache_key, issue_data)
|
Rails.cache.write(cache_key, issue_data)
|
||||||
# Si este trabajo genera una excepción va a entrar en un loop, así que
|
# Si este trabajo genera una excepción va a entrar en un loop, así que
|
||||||
# la notificamos por correo
|
# la notificamos por correo
|
||||||
rescue Exception => e
|
rescue StandardError => e
|
||||||
email_notification.call(e, data: @issue)
|
email_notification.call(e, data: @issue)
|
||||||
email_notification.call(exception, data: options)
|
email_notification.call(exception, data: options)
|
||||||
end
|
end
|
||||||
|
@ -89,7 +89,9 @@ class GitlabNotifierJob < ApplicationJob
|
||||||
end
|
end
|
||||||
|
|
||||||
def errors
|
def errors
|
||||||
options.dig(:data, :params, 'errors') if options.dig(:data, :params).is_a? Hash
|
return '' unless javascript?
|
||||||
|
|
||||||
|
options.dig(:data, :params, 'errors')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Define si es una excepción de javascript o local
|
# Define si es una excepción de javascript o local
|
||||||
|
|
Loading…
Reference in a new issue