(Tmi) 24 weeks pregnant and weird discharge

So yesterday I had a really upset stomach, (tmi) diarrhea ect. Woken up this morning to brown discharge and more cramping. Just wondering if anyone has had something similar around this time? I already have an appt with my midwife this morning and will obviously bring it up to her. I was just asking you ladies to see if you've had something like this and nothing was wrong. Everything I read online says either old blood or infection. 🤷‍♀️😒😣