Chlamydia while pregnant

When I found out I was pregnant I found out I had chlamydia and I got treated but threw it back up because of morning sickness so I still have it and I’m getting treated again. I’m scared with me having it so long I might loose my child. Does anyone have any advice or have gone threw this