apply status normalizer

This commit is contained in:
taehoon 2019-04-30 08:04:22 -04:00
parent 98358d30bb
commit 87de130ee5
1 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,7 @@ const pinOwnStatus = ({ id, credentials }) => {
headers: authHeaders(credentials), headers: authHeaders(credentials),
method: 'POST' method: 'POST'
}) })
.then((data) => parseStatus(data))
} }
const unpinOwnStatus = ({ id, credentials }) => { const unpinOwnStatus = ({ id, credentials }) => {
@ -224,6 +225,7 @@ const unpinOwnStatus = ({ id, credentials }) => {
headers: authHeaders(credentials), headers: authHeaders(credentials),
method: 'POST' method: 'POST'
}) })
.then((data) => parseStatus(data))
} }
const blockUser = ({id, credentials}) => { const blockUser = ({id, credentials}) => {