authtrail icon indicating copy to clipboard operation
authtrail copied to clipboard

Use writeable DB connection when tracking

Open djordjelacmanovic opened this issue 1 year ago • 0 comments

AuthTrail::Manager can be called from a GET request. In a primary+replica DB setups this will result in an error writing to the database as the read-only connection will be checked out. This PR switches to the writing role explicitly so we're sure INSERT will be possible.

djordjelacmanovic avatar May 29 '24 12:05 djordjelacmanovic