Make sure who you are defines the job you do, and not the other way around.
You might be stuck in a job you do not like, and yet this does not alter the person and the professional you aim to be. If you are treated fairly, you can still do a good work, deliver value in details, lend an helping hand, translate experiences into learnings.
And when it is time to move on, continue on a path of self-definition and self-affirmation.
Never lose track of who you are and what you are here for. That’s what makes your story coherent and worth telling.