fix customer model case

This commit is contained in:
2017-01-26 17:07:05 -07:00
parent 6116ee37b3
commit 10aab7ca76
4 changed files with 7 additions and 7 deletions

View File

@@ -24,14 +24,14 @@ function populateDatabase(model) {
switch (model.toLowerCase()) {
case 'customers':
task = fetchCustomers(100)
task = fetchCustomers(37)
.then((customers) => {
const tasks = customers.map((customer) => {
return new Promise((resolve, reject) => {
const options = {
host,
port,
path: '/api/Customers',
path: '/api/customers',
method: 'POST',
headers: {
'Content-Type': 'application/json',

View File

@@ -1,5 +1,5 @@
{
"name": "Customer",
"name": "customer",
"base": "PersistedModel",
"idInjection": true,
"options": {
@@ -7,7 +7,7 @@
},
"properties": {
"id": {
"type": "String",
"type": "string",
"required": false,
"length": 64,
"precision": null,

View File

@@ -5,7 +5,7 @@
"ACL": 1,
"RoleMapping": 1,
"Role": 1,
"Customer": 1
"customer": 1
},
"models": {
"User": {},
@@ -13,6 +13,6 @@
"ACL": {},
"RoleMapping": {},
"Role": {},
"Customer": {}
"customer": {}
}
}

View File

@@ -32,7 +32,7 @@
"dataSource": "db",
"public": false
},
"Customer": {
"customer": {
"dataSource": "db",
"public": true
}