I bet that you had the thermostat control on maximum (?)
Never, ever, do that when it's hot.
On domestic fridges/freezers putting the control up to maximum if hot weather will simply get the works icebound - which effectively stops them form being effective, even though they seem to be functioning OK.
I lived in Spain for a long time, and this was a common problem caused by villa hiring holidaymakers. They would go shopping, get back to their holiday home, open the fridge/freezer door for a while and pile everything in. Then wonder why the fridge wasn't cold - so they would turn the thermostat control up to maximum.
Two days later the fridge would be working like a trojan trying to get cool, but the works were covered in ice which stopped them being effective.
Contrary to logic, you can only turn the fridge up when the weather is cold - when it isn't needed.
IN HOT WEATHER NO MORE THAN TWOTHIRDS!
I hope that this doesn't sound like a lecture - it isn't meant to be.
John S.