Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Commit 9fa0fb7

Browse files
authored
Properly encode Array of GeoPoints (#208)
1 parent 6a6c690 commit 9fa0fb7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/ParseLiveQuery/Internal/QueryEncoder.swift

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ extension Dictionary where Key: ExpressibleByStringLiteral, Value: AnyObject {
4141
}
4242
}
4343
encodedQueryDictionary[key] = queries as? Value
44+
} else if let geoPoints = val as? [PFGeoPoint] {
45+
var points:[Value] = []
46+
for point in geoPoints {
47+
points.append(point.encodedDictionary as! Value)
48+
}
49+
encodedQueryDictionary[key] = points as? Value
4450
} else if let dict = val as? [String:AnyObject] {
4551
encodedQueryDictionary[key] = dict.encodedQueryDictionary as? Value
4652
} else if let geoPoint = val as? PFGeoPoint {

0 commit comments

Comments
 (0)