It doesn't have to be pinholes. A plug in the toilet may not charge for a variety of reasons:
The plug or socket may have been damaged, causing it to fail to charge.
The power supply in the toilet may not be running, or the electrical outlet may not be plugged in properly.
The waterproof box in the toilet may not be covered properly, causing the plug to fail to charge.
Other electrical devices in the toilet may be using the same power source, causing the outlet to be overloaded and unable to charge.
In short, it is necessary to check that the power supply and outlet in the toilet are working properly, and that the plug is intact. If the problem still exists, it is recommended to ask a professional electrician to repair.
You can also turn on the camera to look inside, if there is a small red dot, maybe there is a pinhole camera