Is this even legal?

So I am scheduled to close fuel tomorrow night (4-11) and then turn right around and OPEN fuel Sunday morning from 5-1. That's only 6 hours in between shifts and if I am lucky I might get 4 hours of sleep. I am going to try and swap with a co-worker tomorrow if I can, but is this even legal for them to do?