fix(postgres): Geopoint issue #3285 (#3874)

This commit is contained in:
Diamond Lewis
2017-05-28 11:41:09 -05:00
committed by Florent Vilmart
parent d149d16fce
commit a380fcf2c7
2 changed files with 20 additions and 1 deletions

View File

@@ -920,7 +920,7 @@ export class PostgresStorageAdapter {
index += 2;
} else if (fieldValue.__type === 'GeoPoint') {
updatePatterns.push(`$${index}:name = POINT($${index + 1}, $${index + 2})`);
values.push(fieldName, fieldValue.latitude, fieldValue.longitude);
values.push(fieldName, fieldValue.longitude, fieldValue.latitude);
index += 3;
} else if (fieldValue.__type === 'Relation') {
// noop