Merge pull request #47221 from Shopify/remove-unintentionally-added-array-wrap
Remove unintentional array wrap
This commit is contained in:
commit
b67a9263c9
@ -65,7 +65,7 @@ def reset_counters(id, *counters, touch: nil)
|
||||
updates.merge!(touch_updates)
|
||||
end
|
||||
|
||||
unscoped.where(primary_key => [object.id]).update_all(updates) if updates.any?
|
||||
unscoped.where(primary_key => object.id).update_all(updates) if updates.any?
|
||||
|
||||
true
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user