Well first he is a demigod not God and so obviously he can eat and drink whatever he wants. How do humans metabolise alcohol? If humans can why can’t a demigod?!!

Asgardians have no or little effect of alcohol this explains why thor and Valkyrie dont have any serious issues after excessive drinking

I accept by @Tyyyyie he said correct Thor is not a god we can see in movie thor Ragnaro. He is also a Homan being. He had drink the alcohol