Uti/bladder infection during pregnancy??

I just found out I have a bladder infection in which I think I've had for a week or two already. I'm now on medication but I'm curious what risks my baby has from this infection. I'm 30 weeks.