Emotions At Work

Need help! I’ve been having a really hard time at work – been working really late on a few projects. Though people are very nice at work , I noticed my hard work isn’t being recognised / noticed, through some passing comments they made. A recent deal had a deal close celebration lunch and they forgot to invite me; or during my catchup with my boss I was going to flag I want to go for promotion but right before he made a comment saying I haven’t been performing at my current level etc. all these comments along with a few others were all made on the same day and I was really disappointed and upset and cried twice in the bathroom at work. I don’t want to call quits because it’s hard but I don’t know how to deal my emotions & also keep putting in work & show people my capabilities. Thanks