Safe or not?

Chelsey
My doctor told me I could take unisom and B6 for my nausea and vomitting and it wouldn't harm baby, so I took them last night and slept better than j ever have before and have had no episodes of nausea or vomitting today. But I noticed in some places on the internet it says unisom is not safe for pregnant women so I just wanted to double check with other moms who have taken it and had healthy babies. (I took the dissolving ones)