Yeast infectipn question

I'm 37 weeks and at my appointment today i found out i have yeast infection. She sent a perscription in but for some reason it didn't work so i had to buy the over counter stuff. I got the 7 day treatment but now im worried 😣😣 if I'm so close to delivery and it's not healed up by then will the baby be ok or should i go buy the 3 day treatment?