Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Fixed loading bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed May 11, 2015
1 parent a4a208c commit fd5750c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/server/requestors/GoogleRequestor.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ GoogleRequestor.prototype.getName = function() {
return 'GoogleRequestor';
};
GoogleRequestor.prototype.request = function(params, callback) {
params.types = params.types.join('|');
return this._googlePlaces.placeSearch(params, R.partialRight(this.cleanResults.bind(this), callback));
};

Expand Down
2 changes: 1 addition & 1 deletion src/server/requestors/MoviesRequestor.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ MoviesRequestor.prototype.getName = function() {
* @return {undefined}
*/
MoviesRequestor.prototype.request = function(req, done) {
this._zip_code = Utils.latlng2zip.apply(null, req.location);
this._zip_code = Utils.latlng2zip.apply(null, req.location).zip_code;
this._fetchMovies(function(err, data) {
if (err) {
return done(err);
Expand Down

0 comments on commit fd5750c

Please sign in to comment.