mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Inab5361d69a, we rescue from the PG error but the transaction is already aborted causing any DB query after to fail. As such, we avoid triggering the error in the first place by checking that we would not be insertin a negative number into the counter cache. Follow-up toab5361d69a