setRemoting is defined for remoteChanges with http: { source: 'body' }, and 'since' is not. strong-remoting only sets one parameter in the request body when it's defined like this. Fixed this bug by sending both params through form.
https://github.com/strongloop/loopback/issues/3188
This commit is contained in:
parent
304ecc4784
commit
01f41614dd
|
@ -897,9 +897,10 @@ module.exports = function(registry) {
|
|||
description: 'Get a set of deltas and conflicts since the given checkpoint.',
|
||||
accessType: 'READ',
|
||||
accepts: [
|
||||
{arg: 'since', type: 'number', description: 'Find deltas since this checkpoint'},
|
||||
{arg: 'remoteChanges', type: 'array', description: 'an array of change objects',
|
||||
http: {source: 'body'}},
|
||||
{ arg: 'since', type: 'number', description: 'Find deltas since this checkpoint',
|
||||
http: { source: 'form' }},
|
||||
{ arg: 'remoteChanges', type: 'array', description: 'an array of change objects',
|
||||
http: { source: 'form' }}
|
||||
],
|
||||
returns: {arg: 'result', type: 'object', root: true},
|
||||
http: {verb: 'post', path: '/diff'},
|
||||
|
|
Loading…
Reference in New Issue