From 303baee821a391a2b21d77fa1a2d34066d49a06d Mon Sep 17 00:00:00 2001 From: Yamel Senih Date: Wed, 20 May 2020 13:48:26 -0400 Subject: [PATCH] Fixed error with instance for dictionary based on new implementation of gRPC access (#500) --- package.json | 4 ++-- src/api/ADempiere/instances.js | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 98c4c290..b4c3c78e 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,8 @@ }, "dependencies": { "@adempiere/grpc-access-client": "^1.2.1", - "@adempiere/grpc-data-client": "^2.3.4", - "@adempiere/grpc-dictionary-client": "^1.4.1", + "@adempiere/grpc-data-client": "^2.3.6", + "@adempiere/grpc-dictionary-client": "^1.4.2", "@adempiere/grpc-enrollment-client": "^1.1.0", "@adempiere/grpc-pos-client": "^1.2.0", "axios": "0.19.2", diff --git a/src/api/ADempiere/instances.js b/src/api/ADempiere/instances.js index 717a08ba..015269fd 100644 --- a/src/api/ADempiere/instances.js +++ b/src/api/ADempiere/instances.js @@ -34,11 +34,11 @@ export const DictionaryInstance = () => { const { getLanguage } = require('@/lang/index') const { getToken } = require('@/utils/auth') - return new Dictionary( - DICTIONARY_ADDRESS, - getToken(), - getLanguage() || 'en_US' - ) + return new Dictionary({ + host: DICTIONARY_ADDRESS, + sessionUuid: getToken(), + language: getLanguage() || 'en_US' + }) } // Instance for connection Enrollment