Any process that makes a junior directly access prod codebase/database is flawed.
No matter how small of a company you are, you can set up a proper CI/CD pipeline.
90% of IT companies in Italy don't even know what a CI/CD pipeline is. That said I don't think it's something we could've integrated in our pipeline as it's an error that originated from an external service!