mirror of
				https://github.com/mokuappio/serverless-invoices.git
				synced 2025-10-30 17:31:08 -04:00 
			
		
		
		
	Fix data service config
This commit is contained in:
		| @ -1,4 +1,4 @@ | |||||||
| import storage from '@/config/storage.config'; | import config from '@/config/app.config'; | ||||||
| import local from '@/services/adapters/local.adapter'; | import local from '@/services/adapters/local.adapter'; | ||||||
| import http from '@/services/adapters/http.adapter'; | import http from '@/services/adapters/http.adapter'; | ||||||
| import wordpress from '@/services/adapters/wordpress.adapter'; | import wordpress from '@/services/adapters/wordpress.adapter'; | ||||||
| @ -7,11 +7,11 @@ class DataService { | |||||||
|   adapter = null; |   adapter = null; | ||||||
|  |  | ||||||
|   constructor() { |   constructor() { | ||||||
|     if (storage.type === 'local') { |     if (config.storageType === 'local') { | ||||||
|       this.adapter = local; |       this.adapter = local; | ||||||
|     } else if (storage.type === 'http') { |     } else if (config.storageType === 'http') { | ||||||
|       this.adapter = http; |       this.adapter = http; | ||||||
|     } else if (storage.type === 'wordpress') { |     } else if (config.storageType === 'wordpress') { | ||||||
|       this.adapter = wordpress; |       this.adapter = wordpress; | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user