From 725ecd7b293b4fcb99b11d9db75e8e11dc2c3e3a Mon Sep 17 00:00:00 2001
From: Mahdi Yari <m.yary15@gmail.com>
Date: Fri, 30 Jul 2021 01:51:49 +0430
Subject: [PATCH] set config

---
 src/api/index.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/api/index.js b/src/api/index.js
index 675d914..cef29f5 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -196,6 +196,8 @@ class Hive extends EventEmitter {
     setOptions(options) {
         Object.assign(this.options, options);
 
+        if (options.hasOwnProperty('useAppbaseApi'))
+            config.set('useAppbaseApi', options.useAppbaseApi)
         if (options.hasOwnProperty('failover_threshold'))
             this.failover_threshold = options.failover_threshold;
         if (options.hasOwnProperty('alternative_api_endpoints'))
-- 
GitLab