Skip to content

Commit 11c6170

Browse files
authored
Adds support for postgres when saving relation #3074 (#3084)
1 parent d137e27 commit 11c6170

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,8 @@ export class PostgresStorageAdapter {
910910
updatePatterns.push(`$${index}:name = POINT($${index + 1}, $${index + 2})`);
911911
values.push(fieldName, fieldValue.latitude, fieldValue.longitude);
912912
index += 3;
913+
} else if (fieldValue.__type === 'Relation') {
914+
// noop
913915
} else if (typeof fieldValue === 'number') {
914916
updatePatterns.push(`$${index}:name = $${index + 1}`);
915917
values.push(fieldName, fieldValue);

0 commit comments

Comments
 (0)