A top aide to a district attorney in suburban Philadelphia has been demoted because he was caught moonlighting for DoorDash during work hours.

Bucks County District Attorney Matt Weintraub announced the punishment against prosecutor Gregg Shore would be repayment through unused vacation time. Shore was also demoted from the office’s first assistant district attorney to being a deputy district attorney.

Weintraub said Shore had been working for DoorDash, delivering food during work hours, from October 2020 to February 202. The Bucks County Courier Times said Shore’s salary as first assistant was $125,000.

“I primarily worked the job at nights and weekends, however, I made the incredibly poor decision to deliver during the workday at times,” Shore told the paper.

Shore told the Courier Times he was motivated by personal circumstances during the COVID-19 pandemic to work the delivery job.