Update persisted-model.js

This commit is contained in:
asaf050 2019-06-07 19:34:44 +03:00 committed by GitHub
parent d73b5d5830
commit fe8810b403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -966,7 +966,11 @@ module.exports = function(registry) {
setRemoting(PersistedModel, 'bulkUpdate', {
description: 'Run multiple updates at once. Note: this is not atomic.',
accessType: 'WRITE',
accepts: {arg: 'updates', type: 'array'},
accepts: [{arg: 'updates', type: 'array'},
{
arg: 'options',
type: 'object',
}],
http: {verb: 'post', path: '/bulk-update'},
});