--- a/client/src/actions/sessionsActions.js Tue Oct 09 19:07:47 2018 +0200
+++ b/client/src/actions/sessionsActions.js Mon Oct 08 18:35:47 2018 +0200
@@ -22,18 +22,18 @@
};
}
-export const updateSession = (session, values) => {
+export const updateSession = (sessionId, values) => {
return {
type: types.UPDATE_SESSION,
- session: session,
+ sessionId: sessionId,
values: values,
};
}
-export const deleteSession = (session) => {
+export const deleteSession = (sessionId) => {
return {
type: types.DELETE_SESSION,
- session: session,
+ sessionId: sessionId,
};
}
@@ -56,5 +56,5 @@
}
export const resetActionSession = (session) => {
- return { type: types.RESET_ACTION_SESSION, session };
+ return { type: types.RESET_ACTION_SESSION, sessionId: session._id };
}