Skip to content

Commit

Permalink
Turn off (skip) base App component VehicleInfo query if schema not ve…
Browse files Browse the repository at this point in the history
…rified #151
  • Loading branch information
fnoop committed Mar 2, 2020
1 parent 93f1b05 commit 94886bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ export default {
// If the uuid for the api has not already been set, set it and create a VehicleInfo query (which needs the uuid to be created)
if (!this.$store.state.core.apis[api].uuid) {
this.$store.commit('core/setApiUuid', { api: api, value: data.data.Status.id })
this.logDebug('vehicleinfo', this.verifyQuery(vehicleInfoQuery, api))
// this.logDebug(api)
// this.logDebug(this.verifyQuery(vehicleInfoQuery, api))
this.createQuery('VehicleInfo', vehicleInfoQuery, api, null, !this.verifyQuery(vehicleInfoQuery, api), this.processVehicleInfoQuery, null, { uuid: this.$store.state.core.apis[api].uuid })
}
if (this.$store.state.core.apiTimestamps[api] === null) this.$store.commit('core/setApiSeen', { api: api, value: performance.now() })
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/core/CoreApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const plugin = {
this.$store.commit('core/clearGraphqlVerified', api)
},

verifyQuery (gql, api = this.activeApi, unknownDefault = true) {
verifyQuery (gql, api = this.activeApi, unknownDefault = false) {
let gqlHash = this.hashCode(print(gql))
let alreadyVerified = this.$store.getters['core/graphqlSchemaVerified'](api, gqlHash)

Expand Down

0 comments on commit 94886bf

Please sign in to comment.