mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
Removing pretty_inspect so that bugsnag alert work on production
This commit is contained in:
@@ -98,10 +98,10 @@ Spree::Order.class_eval do
|
||||
current_item = find_line_item_by_variant(variant)
|
||||
if current_item
|
||||
Bugsnag.notify(RuntimeError.new("Order populator weirdness"), {
|
||||
current_item: current_item.as_json.pretty_inspect,
|
||||
current_item: current_item.as_json,
|
||||
line_items: line_items.map(&:id),
|
||||
reloaded: line_items(:reload).map(&:id),
|
||||
variant: variant.as_json.pretty_inspect
|
||||
variant: variant.as_json
|
||||
})
|
||||
current_item.quantity = quantity
|
||||
current_item.max_quantity = max_quantity
|
||||
|
||||
Reference in New Issue
Block a user