Map MySQL Point to GeoPoint
This commit is contained in:
parent
36884820fc
commit
9e2879201b
|
@ -294,6 +294,13 @@ MySQL.prototype.fromDatabase = function (model, data) {
|
|||
case 'Boolean':
|
||||
val = Boolean(val);
|
||||
break;
|
||||
case 'GeoPoint':
|
||||
case 'Point':
|
||||
val = {
|
||||
lat: val.x,
|
||||
lng: val.y
|
||||
};
|
||||
break;
|
||||
}
|
||||
}
|
||||
data[key] = val;
|
||||
|
|
Loading…
Reference in New Issue