Ivan - OS-48 - Use SessionStore in api-call [skip ci]

This commit is contained in:
ivan 2016-07-08 04:00:51 -03:00
parent 64d2a9d70a
commit f7fde84d41
1 changed files with 2 additions and 5 deletions

View File

@ -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 = {