Coop company mistake

I matched with a company two weeks ago and they accidentally sent an offer to another student instead of me. They just informed me of their mistake and have told me they will be talking to the school about the best course of action. Has anyone else experienced anything like this and if so what happened in your situation? Would the school prioritize getting me the job since I matched with them or am I just fucked because of their mistake?