Fix for auto fallback

This commit is contained in:
RemixDev 2021-12-22 12:46:33 +01:00
parent 71e66b9209
commit 7f82895eea

View file

@ -70,7 +70,7 @@ class GW{
}
throw new GWAPIError(`${method} ${args}:: ${e.name}: ${e.message}`)
}
if (result_json.error.length) {
if (result_json.error.length || result_json.error.DATA_ERROR) {
if (result_json.payload && result_json.payload.FALLBACK){
Object.keys(result_json.payload.FALLBACK).forEach(key => {
args[key] = result_json.payload.FALLBACK[key]