mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-09 06:15:57 +08:00
Currently, it can happen that the `Chat::AutoJoinChannels` service raises a `PG::UniqueViolation` error. This is probably due to a race condition. That exception is not rescued, leading to 500s. This PR wraps the main step inside a `try` block and also inside a `lock` block. |
||
|---|---|---|
| .. | ||
| controllers/chat | ||
| jobs | ||
| models | ||
| queries/chat | ||
| serializers/chat | ||
| services/chat | ||
| validators/chat | ||
| views | ||