It’s important you take your baby to their pediatrician immediately if they’re shocked by an outlet. These shocks can be extremely dangerous for babies.
Your pediatrician will be able to check for internal damage or any other injuries the shock may have caused.