From 01f41614dd6086b2552385affafcf9ad6f013957 Mon Sep 17 00:00:00 2001 From: mrjrdnthms Date: Mon, 6 Feb 2017 14:53:56 -0800 Subject: [PATCH] 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 --- lib/persisted-model.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/persisted-model.js b/lib/persisted-model.js index df52fad7..9f00fa1c 100644 --- a/lib/persisted-model.js +++ b/lib/persisted-model.js @@ -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'},