5-6 weeks pregnant. Ate spoiled cheese

I was 5 weeks 5 days yesterday. I ate handful of cheese with bread without realizing the cheese has gone bad. It tasted sour to my mouth but I thought it’s just my feeling because it’s actually a new pack of cheese.

Later that night I had diarrhea. Now am doing ok.

I know it’s my fault for being so irresponsible. Does this affect my pregnancy? Or health of my baby ?