From 9da564feef582de6c7633d0925f51ad0e11efa89 Mon Sep 17 00:00:00 2001 From: mrjrdnthms Date: Tue, 7 Feb 2017 16:08:55 -0800 Subject: [PATCH] typo fix incorrect array access --- lib/persisted-model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/persisted-model.js b/lib/persisted-model.js index af1eb2bd..4e484f13 100644 --- a/lib/persisted-model.js +++ b/lib/persisted-model.js @@ -908,7 +908,7 @@ module.exports = function(registry) { // set options.explicitSinceSource to true in model config // to explicitly set argument source and ensure its passed if (options.explicitSinceSource) { - diffOptions[0].accepts.http = {source: 'query'}; + diffOptions.accepts[0].http = {source: 'query'}; } setRemoting(PersistedModel, 'diff', diffOptions);