mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 20:36:21 +00:00
fix: corregir la sintaxis de discard_on
closes #17566 closes #17573 closes #17574 closes #17578
This commit is contained in:
parent
538f941f77
commit
78430758d9
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ class ActivityPub
|
||||||
#
|
#
|
||||||
# @param error [Exception]
|
# @param error [Exception]
|
||||||
# @return [Bool]
|
# @return [Bool]
|
||||||
discard_on(FastJsonparser::ParseError) do |error|
|
discard_on(FastJsonparser::ParseError) do |job, error|
|
||||||
ExceptionNotifier.notify_exception(error, data: { site: site.name, object: object.uri, body: response.body })
|
ExceptionNotifier.notify_exception(error, data: { site: job.site.name, object: job.object.uri, body: job.response.body })
|
||||||
end
|
end
|
||||||
|
|
||||||
retry_on ActiveRecord::RecordInvalid
|
retry_on ActiveRecord::RecordInvalid
|
||||||
|
|
Loading…
Reference in a new issue