Rhogam shot

I have B- blood type and my boyfriend doesn't even know his 😑 I miscarried last year at 13 weeks. I didn't know my blood type before I miscarried, they tested it the day I got my d&c. On my way home, they called me and said I needed the rhogam shot within 2 days and I luckily was able to get one about an hour later. I'm now pregnant again and worried about my body attacking my baby if it has a positive blood type. When am I supposed to get the shot again? I'm 5 weeks and 1 dayÂ