A 21-month-old boy who was injured in a dog attack is recovering after having two surgeries, one of which lasted 14 hours.