Urine bacterial infection

I’m scared that this will affect my baby. I’m getting it taken care of as soon as I found out. Maybe it’s first time mama jitters but I’m so scared I hurt my baby. Did I?