From d2113b15443636e29d894de42f835b68f7c58b57 Mon Sep 17 00:00:00 2001 From: Brigham Byerly <6891883+byerlyb20@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:33:44 -0600 Subject: [PATCH] Fixed ConditionSerializer to recognize GeoDistance serializer for GeoCoordinate conditions --- .../com/lightningkite/lightningdb/ConditionSerialization.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/commonMain/kotlin/com/lightningkite/lightningdb/ConditionSerialization.kt b/shared/src/commonMain/kotlin/com/lightningkite/lightningdb/ConditionSerialization.kt index 3cc2b7da..5634b8d2 100644 --- a/shared/src/commonMain/kotlin/com/lightningkite/lightningdb/ConditionSerialization.kt +++ b/shared/src/commonMain/kotlin/com/lightningkite/lightningdb/ConditionSerialization.kt @@ -82,7 +82,7 @@ class ConditionSerializer(val inner: KSerializer): MySealedClassSerializer inner.descriptor.serialName.substringBefore('/') == "kotlin.String" -> stringOptions IsRawString.Companion.serialNames.contains(inner.descriptor.serialName) -> rawStringOptions(inner as KSerializer) inner.descriptor.serialName == "kotlin.Int" -> intOptions - inner.descriptor.serialName == "com.lightningkite.GeoCoordinate" -> geocoordinateOptions + inner.descriptor.serialName.substringBefore('/') == "com.lightningkite.GeoCoordinate" -> geocoordinateOptions inner.descriptor.kind == StructureKind.MAP -> stringMapOptions(inner.innerElement2()) inner.descriptor.kind == StructureKind.LIST -> { if(inner.descriptor.serialName.contains("Set")) setOptions(inner.innerElement())