From 0dfa3dddec1aaf925c49fb24015e4175eabfb140 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 23 May 2020 21:57:16 +0000 Subject: [PATCH] --- ayanova/src/api/auth.js | 2 +- ayanova/src/api/gzapi.js | 2 +- ayanova/src/api/translation.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ayanova/src/api/auth.js b/ayanova/src/api/auth.js index 888635af..fc63b618 100644 --- a/ayanova/src/api/auth.js +++ b/ayanova/src/api/auth.js @@ -12,7 +12,7 @@ export default { }) ) .then(window.$gz.api.status) - .then(window.$gz.api.json) + .then(window.$gz.api.extractBody) .then(processLogin) .then(() => { return Promise.resolve(true); diff --git a/ayanova/src/api/gzapi.js b/ayanova/src/api/gzapi.js index b1252bbe..b714c69f 100644 --- a/ayanova/src/api/gzapi.js +++ b/ayanova/src/api/gzapi.js @@ -159,7 +159,7 @@ export default { if (!contentType) { return response; } - // console.log("gzapi::JSON method, content type is:", contentType); + console.log("gzapi::extractBody method, content type is:", contentType); if (contentType.includes("json")) { return response.json(); } diff --git a/ayanova/src/api/translation.js b/ayanova/src/api/translation.js index 3bdc55db..abaa56e8 100644 --- a/ayanova/src/api/translation.js +++ b/ayanova/src/api/translation.js @@ -37,7 +37,7 @@ export default { window.$gz.api.fetchPostOptions(needIt) ) .then(window.$gz.api.status) - .then(window.$gz.api.json) + .then(window.$gz.api.extractBody) // eslint-disable-next-line .then((response) => { window.$gz._.forEach(