Pregnancy troubles

So I am about 8 weeks and I found out I have a yeast and bacteria infection I never get things like this and I was told it can be extremely problematic but I’m taking medication to get rid of them and I have my first ultrasound appointment Monday and I’m worried they are going to do it vaginally and the infections won’t be gone !!

What should I do