Electroshock therapy is still common in some places, such as Australia
https://www.healthdirect.gov.au/electroconvulsive-therapy-ec...
Effects don't last that long (long enough though to get someone out of debilitating depression or mania and time for proper treatment) and need repeated courses to sustain.
There are still issues with memory, where one looses maybe a few days, but also could loose years.