mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 13:56:50 +08:00
32db976156
This was not picked up by tests because scheduled jobs are run immediately and in the current thread (and therefore the current database transaction). This particular case sometimes occurs inside multiple nested transactions, so simply moving the offending line outside of the transaction is not enough. Implemented TransactionHelper, which allows us to use `TransactionHelper.after_commit` to define code to be run after the current transaction has been committed. |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
jobs | ||
mailers | ||
models | ||
serializers | ||
services | ||
views |