Skip to content

Commit

Permalink
Merge pull request #39 from BerkeleyTrue/feature/add-geopoint-support
Browse files Browse the repository at this point in the history
Typecast lat/lng values to number.
  • Loading branch information
raymondfeng committed Dec 5, 2014
2 parents 6c1eaf1 + a3a83a6 commit 301925b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/postgresql.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,8 @@ PostgreSQL.prototype.fromDatabase = function (model, data) {
// The point format is (x,y)
var point = val.split(/[\(\)\s,]+/).filter(Boolean);
json[p] = {
lat: point[0],
lng: point[1]
lat: +point[0],
lng: +point[1]
};
} else {
json[p] = val;
Expand Down

0 comments on commit 301925b

Please sign in to comment.