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" } },