Genesis 45:7 And God sent me before you to preserve you a posterity in the earth, and to save your lives by a great deliverance.
Joseph was able to love his brothers though they had severely mistreated him. He was able to forgive. He was able to continue in the ministry.
The way to continue was to see above the stuff on this level. To see from God’s perspective. God was at work in Joseph’s life and the life of an entire people. God’s plans were bigger than Joseph’s comfort.
Try to see what God is doing before you get too upset!