mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-03 16:50:30 +08:00
We were incorrectly using `return` in a block which was causing exceptions at runtime. These exceptions were not causing much issues as they are in defer block. While working on writing a test for this specific case, I noticed that our `upsert_custom_fields` function was using rails `update_all` which is not updating the `updated_at` timestamp. This commit also fixes it and adds a test for it. |
||
|---|---|---|
| .. | ||
| cached_counting_spec.rb | ||
| has_custom_fields_spec.rb | ||
| has_search_data_spec.rb | ||
| positionable_spec.rb | ||
| searchable_spec.rb | ||
| second_factor_manager_spec.rb | ||