Stopped working after barely any use

I have had this cord only used for plugging in at night occasionally next to my bed and out of no where it stopped charging. I have shorter version I keep in my kitchen that still works, not sure why the longer version went out with less use. Disappointed.

###

