Upset stomach

Liz🐘🐘
Hello ladies. I'm currently 24 weeks. I been having a upset stomach for a few days(on and off). But last night I got a stomachache and it hasn't gone away. This morning, I was spotting a little bit but it went away. Now I have a constant pain on my bottom left side. I called the midwife and she said just to go home and get some rest and to eat mild foods. And if it doesn't go away to go to the emergency. I'm still at work because I can't leave until someone gets in. I had a previous miscarriage so I'm just freaking out. Thanks in advance.