I don't get that. There was no code issue. The old and new code both worked as intended, it was a deployment and deployment-verification problem.
> They didn't had a staging environment
Yes they did. They staged the new code and tested it. They did a slow deployment also.
> They didn't had a contingency plan to revert the deploy
They did revert the deploy within the 45 minutes. It made it worse.
I think you need to re-read the article. Your assessment is strange given the event.