Get one’s comeuppance

To get the punishment that one deserves.

The woman got her comeuppance when she was forced to apologize to the other woman in the company.