From 10aab7ca7641194cf0819e8825d96abd6b424738 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Thu, 26 Jan 2017 17:07:05 -0700 Subject: [PATCH] fix customer model case --- cli/seed_db.js | 4 ++-- common/models/customer.json | 4 ++-- demodata.json | 4 ++-- server/model-config.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cli/seed_db.js b/cli/seed_db.js index 64ea5d5..7a15f27 100644 --- a/cli/seed_db.js +++ b/cli/seed_db.js @@ -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', diff --git a/common/models/customer.json b/common/models/customer.json index 3c8bfed..a06cdf0 100644 --- a/common/models/customer.json +++ b/common/models/customer.json @@ -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, diff --git a/demodata.json b/demodata.json index 13f03d2..1dad7aa 100644 --- a/demodata.json +++ b/demodata.json @@ -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": {} } } \ No newline at end of file diff --git a/server/model-config.json b/server/model-config.json index f4547bf..f3b5ad2 100644 --- a/server/model-config.json +++ b/server/model-config.json @@ -32,7 +32,7 @@ "dataSource": "db", "public": false }, - "Customer": { + "customer": { "dataSource": "db", "public": true }