if that "mechanic" just changed the part without testing the circuit & the same code came back, bring it back to him to honor the warranty!
I hope you asked for the old parts back, so you can test the old parts to see if they were good to begin with
most people think after pulling the trouble codes, it's usually the part's fault; that's not the case...
you need to test the circuit as well as testing the vacuum lines, grounds, etc...