Accounts fetch and create works for UK/DE
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
				
			|||||||
import axios from 'axios'
 | 
					import axios from 'axios'
 | 
				
			||||||
 | 
					import store from '../store/modules/settings.js'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const apiUrl = 'https://users.service.development.therig.onlinefuelslabs.io'
 | 
					const apiUrl = 'https://users.service.development.therig.onlinefuelslabs.io'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -15,7 +16,7 @@ export function createAccount(data) {
 | 
				
			|||||||
    'name': data.name,
 | 
					    'name': data.name,
 | 
				
			||||||
    'type': data.type,
 | 
					    'type': data.type,
 | 
				
			||||||
    'email': data.email,
 | 
					    'email': data.email,
 | 
				
			||||||
    'platform': data.platform || 'OLFDE',
 | 
					    'platform': store.state.platform,
 | 
				
			||||||
    'phone': data.phone,
 | 
					    'phone': data.phone,
 | 
				
			||||||
    'status': parseInt(data.status),
 | 
					    'status': parseInt(data.status),
 | 
				
			||||||
    'orderConfirmationEmail': data.orderConfirmationEmail,
 | 
					    'orderConfirmationEmail': data.orderConfirmationEmail,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -79,7 +79,7 @@ export default {
 | 
				
			|||||||
  created() {
 | 
					  created() {
 | 
				
			||||||
    // Set the type for the query
 | 
					    // Set the type for the query
 | 
				
			||||||
    this.listQuery.type = this.$route.meta.type
 | 
					    this.listQuery.type = this.$route.meta.type
 | 
				
			||||||
    this.listQuery.platform = 'OLFDE'
 | 
					    this.listQuery.platform = this.$store.state.settings.platform
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    this.getList()
 | 
					    this.getList()
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user