the debates for it have been going on for weeks. They announced the vote at the beginning of the week.
Concretely, nothing could have prevented this outcome, because the Prime Minister's party has such a huge majority. There have been massive protests for a while now too, but that didn't seem to sway things as much.
A silver lining is that there seems to be a renewed interest in the constitution itself, It is a product of the American occupation, originally written in English, by US lawyers.
Though that might not change the good/badness of it's contents, it does smell a bit of colonialism.