Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

few remaining api cleanup things

  • Loading branch information...
commit 4f818291cd573e4f964acbc4387a42bf7054afff 1 parent 3902c24
@quartzjer quartzjer authored
Showing with 2 additions and 1 deletion.
  1. +1 −1  Apps/LongCal/app.js
  2. +1 −0  Collections/Places/places.js
View
2  Apps/LongCal/app.js
@@ -45,7 +45,7 @@ Date.prototype.yyyymmdd = function() {
};
function loadPlaces(cb){
- request.get({uri:locker.lockerBase+"/Me/places/getPlaces?me=true",json:true},function(err,res,body){
+ request.get({uri:locker.lockerBase+"/Me/places/?all=true&me=true",json:true},function(err,res,body){
if(err || !body || body.length == 0) return cb();
var places = [];
body.forEach(function(p){places.push({at:p.at, c:long2num(p.lng)})});
View
1  Collections/Places/places.js
@@ -40,6 +40,7 @@ app.get('/', function(req, res) {
options.fields = JSON.parse(req.query.fields);
} catch(E) {}
}
+ options.me = req.query.me;
var results = [];
dataStore.getPlaces(options, function(item) { results.push(item); }, function(err) { res.send(results); });
});
Please sign in to comment.
Something went wrong with that request. Please try again.