Add restaurants

This commit is contained in:
2016-12-23 20:38:59 -05:00
parent 545c74f214
commit 4c7b9310c0
13 changed files with 435 additions and 0 deletions

View File

@ -1,5 +1,7 @@
var UserConstants = require('../constants/UserConstants');
var AttendeeActions = require('./AttendeeActions');
var RestaurantActions = require('./RestaurantActions');
var ErrorActions = require('./ErrorActions');
var models = require('../models.js');
@ -89,6 +91,8 @@ function fetch(userId) {
function initializeSession(dispatch, session) {
dispatch(userLoggedIn(session));
dispatch(fetch(session.UserId));
dispatch(AttendeeActions.fetchAll());
dispatch(RestaurantActions.fetchAll());
}
function login(user) {