client/src/sagas/index.js
changeset 59 1eb52770eefa
parent 58 f16a080e0bc4
child 62 b2514a9bcd49
--- a/client/src/sagas/index.js	Mon Jun 19 21:37:33 2017 +0200
+++ b/client/src/sagas/index.js	Mon Jun 19 21:46:21 2017 +0200
@@ -28,11 +28,10 @@
 // ---
 
 export function* createSession(action) {
-  //const response = yield sessionsDB.put(action.session);
+  const response = yield sessionsDB.put(action.session);
   // TODO Error control
-  //const session = Object.assign({}, action.session, { rev: response.rev });
-  //yield put({ type: types.CREATE_SESSION, session: session })
-  yield console.log("CREATE SESSION", action);
+  const session = Object.assign({}, action.session, { rev: response.rev });
+  yield put({ type: types.CREATE_SESSION, session: session })
 }
 
 export function* watchCreateSession() {