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:
mrjrdnthms 2017-02-06 14:53:56 -08:00
parent 304ecc4784
commit 01f41614dd
1 changed files with 4 additions and 3 deletions

View File

@ -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'},