Hopefully he'll be ok guest. Keep an eye on him over the next few days. Onion poisoning causes gastroenteritis and vomiting. He'll probably go off his food. If he does then you need to take him to the vets.
He should be fine. My lot regularly have food containing onion, and I've never (in over 40 years of dog ownership) had any cause to think it unsafe. :)