Yeast infection while pregnant.

I am currently 30w 5d and in the hospital. They did a vaginal swab yesterday because I noticed a clear sweet smelly discharge. They came back and said I have a yeast infection. What does that mean, what did you do, etc? I'm worried..