From c242dee75562bf4ac19cd030b57f20f06d93f02d Mon Sep 17 00:00:00 2001 From: Omar Al-Jadda Date: Fri, 11 Jan 2013 07:27:49 -0800 Subject: [PATCH] find: function needs /classes/ at the end --- lib/Parse.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Parse.js b/lib/Parse.js index 3cbd7f6..e51f513 100644 --- a/lib/Parse.js +++ b/lib/Parse.js @@ -25,9 +25,9 @@ Parse.prototype = { // get an object from the class store find: function (className, query, callback) { if (typeof query === 'string') { - parseRequest.call(this, 'GET', '/1/' + className + '/' + query, null, callback); + parseRequest.call(this, 'GET', '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/1/classes/' + className + '/' + query, null, callback); } else { - parseRequest.call(this, 'GET', '/1/' + className, { where: JSON.stringify(query) }, callback); + parseRequest.call(this, 'GET', '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/1/classes/' + className, { where: JSON.stringify(query) }, callback); } }, @@ -206,4 +206,4 @@ function parseRequest(method, path, data, callback, contentType) { req.on('error', function (err) { callback && callback(err); }); -} \ No newline at end of file +}