From f7fde84d412c5193222156b9bd10562243073576 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 8 Jul 2016 04:00:51 -0300 Subject: [PATCH] Ivan - OS-48 - Use SessionStore in api-call [skip ci] --- client/src/lib-app/api-call.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/src/lib-app/api-call.js b/client/src/lib-app/api-call.js index 90c308ce..2db55bb8 100644 --- a/client/src/lib-app/api-call.js +++ b/client/src/lib-app/api-call.js @@ -1,14 +1,11 @@ const _ = require('lodash'); const APIUtils = require('lib-core/APIUtils'); -const SessionStorage = require('sessionstorage'); +const SessionStore = require('lib-app/session-store'); const root = 'http://localhost:3000/api/'; function processData (data) { - return _.extend({ - userId: SessionStorage.getItem('userId'), - token: SessionStorage.getItem('token') - }, data); + return _.extend(SessionStore.getSessionData(), data); } module.exports = {