Fix postJSON$ should return response

This commit is contained in:
Berkeley Martinez
2016-01-09 23:05:53 -08:00
parent a8ee090fea
commit c670cdfaab

View File

@ -276,7 +276,8 @@ export function postJSON$(url, body) {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
});
})
.map(({ response }) => response);
}
/**
@ -304,7 +305,5 @@ export function getJSON$(url) {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
}).map(function(x) {
return x.response;
});
}).map(({ response }) => response);
}