From 3a28cbe99babd590d9a419d39b8f85a909c4f715 Mon Sep 17 00:00:00 2001 From: Gijs van Veen Date: Thu, 14 Nov 2024 01:17:37 +0100 Subject: [PATCH] Fixed actually getting values --- .../kotlin/dev/gitlive/firebase/firestore/FieldValuesDSL.kt | 2 +- .../dev/gitlive/firebase/firestore/FieldsAndValuesUpdateDSL.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firebase-firestore/src/commonMain/kotlin/dev/gitlive/firebase/firestore/FieldValuesDSL.kt b/firebase-firestore/src/commonMain/kotlin/dev/gitlive/firebase/firestore/FieldValuesDSL.kt index 570a3ea90..7c1f4d4a7 100644 --- a/firebase-firestore/src/commonMain/kotlin/dev/gitlive/firebase/firestore/FieldValuesDSL.kt +++ b/firebase-firestore/src/commonMain/kotlin/dev/gitlive/firebase/firestore/FieldValuesDSL.kt @@ -17,7 +17,7 @@ public class FieldValuesDSL internal constructor() : EncodeSettings.Builder { @PublishedApi internal val fieldValuesToAdd: MutableList<() -> Any> = mutableListOf() - internal val fieldValues = fieldValuesToAdd.map { valueToEncode -> + internal val fieldValues get() = fieldValuesToAdd.map { valueToEncode -> valueToEncode.invoke() } diff --git a/firebase-firestore/src/commonMain/kotlin/dev/gitlive/firebase/firestore/FieldsAndValuesUpdateDSL.kt b/firebase-firestore/src/commonMain/kotlin/dev/gitlive/firebase/firestore/FieldsAndValuesUpdateDSL.kt index 939ccbba3..5ea2ae37d 100644 --- a/firebase-firestore/src/commonMain/kotlin/dev/gitlive/firebase/firestore/FieldsAndValuesUpdateDSL.kt +++ b/firebase-firestore/src/commonMain/kotlin/dev/gitlive/firebase/firestore/FieldsAndValuesUpdateDSL.kt @@ -27,7 +27,7 @@ public class FieldsAndValuesUpdateDSL internal constructor() : EncodeSettings.Bu @PublishedApi internal val fieldAndValueToAdd: MutableList<() -> FieldAndValue> = mutableListOf() - internal val fieldsAndValues = fieldAndValueToAdd.map { fieldAndValueToEncode -> + internal val fieldsAndValues: List get() = fieldAndValueToAdd.map { fieldAndValueToEncode -> fieldAndValueToEncode.invoke() }