The lesson to be learned here is don’t over exert yourself for your job without clear reward—do the amount of work they pay you for. Unless you are in a leadership position, your primary responsibility as an employee is to yourself.
There are whole departments who are there to look after the company’s interest, but it is up to you to look after your own.