From d574c9ef3c97f17934d50a6404702bdb427db294 Mon Sep 17 00:00:00 2001 From: HenriT Date: Thu, 26 Aug 2021 16:42:41 +0300 Subject: [PATCH] Fix data service config --- src/services/data.service.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/services/data.service.js b/src/services/data.service.js index 1470ebe..64bda03 100644 --- a/src/services/data.service.js +++ b/src/services/data.service.js @@ -1,4 +1,4 @@ -import storage from '@/config/storage.config'; +import config from '@/config/app.config'; import local from '@/services/adapters/local.adapter'; import http from '@/services/adapters/http.adapter'; import wordpress from '@/services/adapters/wordpress.adapter'; @@ -7,11 +7,11 @@ class DataService { adapter = null; constructor() { - if (storage.type === 'local') { + if (config.storageType === 'local') { this.adapter = local; - } else if (storage.type === 'http') { + } else if (config.storageType === 'http') { this.adapter = http; - } else if (storage.type === 'wordpress') { + } else if (config.storageType === 'wordpress') { this.adapter = wordpress; } }