nichols ---

Whether or not the device is code compliant or not, your device should not have been damaged.

If you are mad, bill the electrician, and then sue him in court to collet.

Win or lose he will realize his behavior will cost him money.

-------

Is it legal?

There was a thread about building a movable kitchen island with outlets connected to power thru a plug into a wall outlet. No one claimed that "extension cord" was not legal.

There are UL listed extension cords that look much like what you have, several standard recepts in a plastic box.