From 6e54a92ccbd10bb519e8705121aedce5e93a7a43 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 29 Apr 2019 23:19:23 +0000 Subject: [PATCH] --- ayanova/src/api/auth.js | 10 +++++----- ayanova/src/api/locale.js | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ayanova/src/api/auth.js b/ayanova/src/api/auth.js index 83477f15..028fca4c 100644 --- a/ayanova/src/api/auth.js +++ b/ayanova/src/api/auth.js @@ -1,18 +1,18 @@ /* Xeslint-disable */ -import apiUtil from "./gzapi"; +import gzapi from "./gzapi"; import { processLogin, processLogout } from "./authutil"; export default { async authenticate(login, password) { return fetch( - apiUtil.APIUrl("auth"), - apiUtil.fetchPostNoAuthOptions({ + gzapi.APIUrl("auth"), + gzapi.fetchPostNoAuthOptions({ login: login, password: password }) ) - .then(apiUtil.status) - .then(apiUtil.json) + .then(gzapi.status) + .then(gzapi.json) .then(processLogin) .then(() => { return Promise.resolve(true); diff --git a/ayanova/src/api/locale.js b/ayanova/src/api/locale.js index 6076df80..167c1d39 100644 --- a/ayanova/src/api/locale.js +++ b/ayanova/src/api/locale.js @@ -1,6 +1,6 @@ /* ZZeslint-disable */ import store from "../store"; -import apiUtil from "./gzapi"; +import gzapi from "./gzapi"; import _ from "../libs/lodash.min.js"; export default { @@ -29,9 +29,9 @@ export default { } //step 2: get it - fetch(apiUtil.APIUrl("locale/subset"), apiUtil.fetchPostOptions(needIt)) - .then(apiUtil.status) - .then(apiUtil.json) + fetch(gzapi.APIUrl("locale/subset"), gzapi.fetchPostOptions(needIt)) + .then(gzapi.status) + .then(gzapi.json) .then(response => { _.forEach(response.data, function commitFetchedLTItemToStore(item) { store.commit("addLocaleText", item);