From 19033b8460cb43dc2fa34a2cffa932b5efe111ca Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Sat, 19 Aug 2017 15:39:58 +0200 Subject: Add profile page --- src/api/sagas/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/api/sagas/index.js') diff --git a/src/api/sagas/index.js b/src/api/sagas/index.js index 426b344a..7fe57453 100644 --- a/src/api/sagas/index.js +++ b/src/api/sagas/index.js @@ -1,7 +1,8 @@ import {takeEvery} from "redux-saga/effects"; import {LOG_IN} from "../../actions/auth"; import {ADD_SIMULATION, DELETE_SIMULATION} from "../../actions/simulations"; -import {FETCH_AUTHORIZATIONS_OF_CURRENT_USER} from "../../actions/users"; +import {DELETE_CURRENT_USER, FETCH_AUTHORIZATIONS_OF_CURRENT_USER} from "../../actions/users"; +import {onDeleteCurrentUser} from "./profile"; import {onSimulationAdd, onSimulationDelete} from "./simulations"; import {onFetchAuthorizationsOfCurrentUser, onFetchLoggedInUser} from "./users"; @@ -10,4 +11,5 @@ export default function* rootSaga() { yield takeEvery(FETCH_AUTHORIZATIONS_OF_CURRENT_USER, onFetchAuthorizationsOfCurrentUser); yield takeEvery(ADD_SIMULATION, onSimulationAdd); yield takeEvery(DELETE_SIMULATION, onSimulationDelete); + yield takeEvery(DELETE_CURRENT_USER, onDeleteCurrentUser); } -- cgit v1.2.3