Merge pull request #47221 from Shopify/remove-unintentionally-added-array-wrap

Remove unintentional array wrap
This commit is contained in:
Eileen M. Uchitelle 2023-02-02 08:49:02 -05:00 committed by GitHub
commit b67a9263c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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