public async Task <bool> IsUserLive(int userId) { var userIntegration = _unitOfWork.UserIntegrations.GetById(userId, 1); if (userIntegration != null && await _twitchClient.IsStreamerLive(userIntegration.Token)) { await UpdateStreamUrl(userIntegration); return(true); } return(false); }