Having an active infection around the time of surgery puts you at risk for a postoperative infection at your surgical site. First, you need to see a dentist to help you with this AND you need to let your surgeon know about this. I agree with my colleagues that the best course of action is to delay surgery until your dental infection is fully resolved. Best of luck.
See your dentist have have your tooth evaluated and treated. Do no proceed with cosmetic surgery if there is a possibility of a tooth abscess. Notify both your dentist and your surgeon of this situation.