Update persisted-model.js
This commit is contained in:
parent
d73b5d5830
commit
fe8810b403
|
@ -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'},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue