The best thing you can do is be consistent–personality wise and work wise. Some people are moody. You can’t change who someone is. Be aware of your boss’s mood and then go on with your day like normal. The best thing you can do for your boss’s mood is act as you normally do. Be the consistent force they can rely on. Don’t let your boss’s mood affect you. You have no idea what they are dealing with after hours.