Stomach virus

How do you get over a small stomach bug while pregnant ? I’m pretty sure this is what I have and I feel miserable. I’m hoping it’s one of those 48 hour ones. What can I take or cannot take ?