Permalink
Browse files

update SDK for Path

  • Loading branch information...
1 parent fa3a571 commit 729d9a1e61a0538d0de2113ee793f527d213b6cd @rodsimpson rodsimpson committed Aug 17, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/usergrid.appSDK.js
View
@@ -1042,15 +1042,15 @@ Usergrid.SDK_VERSION = '0.9.6';
var queryParams = this.getQueryParams();
//empty the list
this.setEntityList([]);
- this.setAllQueryParams('GET', this.getCollectionPath(), null, queryParams,
+ this.setAllQueryParams('GET', this.getPath(), null, queryParams,
function(response) {
if (response.entities) {
this.resetEntityPointer();
var count = response.entities.length;
for (var i=0;i<count;i++) {
var uuid = response.entities[i].uuid;
if (uuid) {
- var entity = new Usergrid.Entity(self.getCollectionPath(), uuid);
+ var entity = new Usergrid.Entity(self.getPath(), uuid);
//store the data in the entity
var data = response.entities[i] || {};
delete data.uuid; //remove uuid from the object
@@ -1101,7 +1101,7 @@ Usergrid.SDK_VERSION = '0.9.6';
}
entity.save();
}
- this.setAllQueryParams('PUT', this.getCollectionPath(), jsonObj, null,successCallback, errorCallback);
+ this.setAllQueryParams('PUT', this.getPath(), jsonObj, null,successCallback, errorCallback);
Usergrid.ApiClient.runAppQuery(this);
}
})(Usergrid);

0 comments on commit 729d9a1

Please sign in to comment.