client/src/sagas/index.js
changeset 56 96543c395baa
parent 55 a2761c5be551
child 57 2e4e9f9ebc4f
equal deleted inserted replaced
55:a2761c5be551 56:96543c395baa
   118         }, {
   118         }, {
   119           type: types.AUTH_STORE_TOKEN_ASYNC,
   119           type: types.AUTH_STORE_TOKEN_ASYNC,
   120           token: response.token,
   120           token: response.token,
   121         }];
   121         }];
   122 
   122 
   123         yield actions.map(action => put(action))
   123         yield all(actions.map(action => put(action)))
   124 
   124 
   125     } catch(e) {
   125     } catch(e) {
   126         yield put({ type: types.AUTH_LOGIN_ERROR, error: e });
   126         yield put({ type: types.AUTH_LOGIN_ERROR, error: e });
   127     }
   127     }
   128   }
   128   }