Stamplay / stamplay-js-sdk

:rocket: JavaScript SDK of Stamplay cloud platform
https://stamplay.com
MIT License
88 stars 18 forks source link

Stamplay.Query always calls to users object #39

Closed aleixpellicer closed 8 years ago

aleixpellicer commented 8 years ago

This:

var query = new Stamplay.Query("cobject", "photo");
query.exec().then(function(response){
  console.log(response);
});

Does this:

Request URL:https://foto2.stamplayapp.com/api/cobject/v1/users?where={}

when it shoud to this:

Request URL:https://foto2.stamplayapp.com/api/cobject/v1/photo?where={}

criroselli commented 8 years ago

HI @aleixpellicer change "cobject" to "object" :)

Here the reason: https://github.com/Stamplay/stamplay-js-sdk/blob/master/src/query.js#L206