Add restaurants
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user