Skip to content

Commit 5592f65

Browse files
committed
Cast lat,long values to FLOAT8
1 parent 8584825 commit 5592f65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/signaling/stores/postgres.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ func (s *PostgresStore) UpdatePeerGeo(ctx context.Context, peerID string, lat, l
464464
UPDATE peers
465465
SET
466466
geo = CASE
467-
WHEN $1 IS NOT NULL AND $2 IS NOT NULL THEN ll_to_earth($1, $2)
467+
WHEN $1 IS NOT NULL AND $2 IS NOT NULL THEN ll_to_earth($1::float8, $2::float8)
468468
ELSE NULL
469469
END,
470470
updated_at = $3

0 commit comments

Comments
 (0)