Revert "Fix description of updateAll response"

This reverts commit 1439446
This commit is contained in:
maxim.sharai 2017-12-05 16:39:36 +03:00
parent 1babfcde9f
commit f0b9c184ed
2 changed files with 3 additions and 14 deletions

View File

@ -845,14 +845,9 @@ module.exports = function(registry) {
{arg: 'options', type: 'object', http: 'optionsFromRequest'},
],
returns: {
arg: 'info',
description: 'Information related to the outcome of the operation',
type: {
count: {
type: 'number',
description: 'The number of instances updated',
},
},
arg: 'count',
description: 'The number of instances updated',
type: 'object',
root: true,
},
http: {verb: 'post', path: '/update'},

View File

@ -288,12 +288,6 @@ function formatReturns(m) {
return '';
}
var type = returns[0].type;
// handle anonymous type definitions, e.g
// { arg: 'info', type: { count: 'number' } }
if (typeof type === 'object' && !Array.isArray(type))
type = 'object';
return type ? ':' + type : '';
}