FYP: fix "ignore" response handling (it's not a json)

This commit is contained in:
infinite-persistence 2022-03-17 22:20:57 +08:00 committed by Thomas Zarebczan
parent a31ea6417a
commit 35f0777320

View file

@ -58,7 +58,6 @@ const recsysFyp = {
method: 'POST', method: 'POST',
headers: { [X_LBRY_AUTH_TOKEN]: getAuthToken() }, headers: { [X_LBRY_AUTH_TOKEN]: getAuthToken() },
}) })
.then((response) => response.json())
.then((result) => result) .then((result) => result)
.catch((error) => { .catch((error) => {
console.log('FYP: ignore', { error, userId, gid, claimId }); console.log('FYP: ignore', { error, userId, gid, claimId });