mirror of
https://github.com/discourse/discourse.git
synced 2025-06-20 07:31:33 +08:00

The `on_update` callback of triggers is called with previous fields and new fields, values. However since a recent change: https://github.com/discourse/discourse/pull/32810 this relationship is cached and would cause previous fields to equal new fields. This commit ensures we are refreshing the relationship before calling the `on_update` callback.