From 729ddf335846fdec65ec94913a9fc2e5cd063499 Mon Sep 17 00:00:00 2001 From: nelo Date: Tue, 20 Jun 2017 10:40:04 +0200 Subject: [PATCH] warehouses inventory --- services/production/common/methods/warehouse/list-warehouses.js | 2 +- services/production/common/models/warehouse.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/production/common/methods/warehouse/list-warehouses.js b/services/production/common/methods/warehouse/list-warehouses.js index c22235509d..9b3c315be1 100644 --- a/services/production/common/methods/warehouse/list-warehouses.js +++ b/services/production/common/methods/warehouse/list-warehouses.js @@ -3,7 +3,7 @@ module.exports = function(Warehouse) { description: 'List production warehouses', returns: { arg: 'warehouses', - type: 'object' + type: 'array' }, http: { verb: 'get', diff --git a/services/production/common/models/warehouse.json b/services/production/common/models/warehouse.json index 2089140855..80c8b85006 100644 --- a/services/production/common/models/warehouse.json +++ b/services/production/common/models/warehouse.json @@ -14,7 +14,7 @@ "tpv": { "type": "Number" }, - "inventary": { + "inventory": { "type": "Number" } },