Her boss really 'gave her the shaft' [=treated her unfairly] when he promoted someone less experienced instead of her.
He got promoted and she 'got the shaft'.
You really 'got shafted' in that deal.
(..) "Tomorrow thousands will ask in fury and desperation: Joh Fredersen, where is my son-!" "Where are your children??!" "The city lies underwater, the shafts are completely flooded-!!" "Who told you to attack the machines, you idiots? Without them you'll all die!!" "It's the witch's fault-!" (..)1927 Metropolis