diff --git a/src/commonMain/kotlin/io/github/agrevster/pocketbaseKotlin/dsl/query/Filter.kt b/src/commonMain/kotlin/io/github/agrevster/pocketbaseKotlin/dsl/query/Filter.kt index d483b11..9396dbd 100644 --- a/src/commonMain/kotlin/io/github/agrevster/pocketbaseKotlin/dsl/query/Filter.kt +++ b/src/commonMain/kotlin/io/github/agrevster/pocketbaseKotlin/dsl/query/Filter.kt @@ -1,6 +1,7 @@ package io.github.agrevster.pocketbaseKotlin.dsl.query import io.ktor.http.* +import io.github.agrevster.pocketbaseKotlin.models.Record /** * Used to filter the list of [Record]s returned by a request. diff --git a/src/commonMain/kotlin/io/github/agrevster/pocketbaseKotlin/dsl/query/ShowFields.kt b/src/commonMain/kotlin/io/github/agrevster/pocketbaseKotlin/dsl/query/ShowFields.kt index 92ca67d..d772fab 100644 --- a/src/commonMain/kotlin/io/github/agrevster/pocketbaseKotlin/dsl/query/ShowFields.kt +++ b/src/commonMain/kotlin/io/github/agrevster/pocketbaseKotlin/dsl/query/ShowFields.kt @@ -9,12 +9,7 @@ import io.ktor.http.* * @param [fields] all of the fields you want to be shown in the record's response */ public class ShowFields(vararg fields: String) { - private lateinit var fieldsToShow: String - - init { - fieldsToShow = fields.joinToString(separator = ",") - println(fieldsToShow) - } + private var fieldsToShow: String = fields.joinToString(separator = ",") /**s * Adds the current [ShowFields] to a request's parameters diff --git a/src/commonMain/kotlin/io/github/agrevster/pocketbaseKotlin/services/utils/SSE.kt b/src/commonMain/kotlin/io/github/agrevster/pocketbaseKotlin/services/utils/SSE.kt index 26746bf..182992c 100644 --- a/src/commonMain/kotlin/io/github/agrevster/pocketbaseKotlin/services/utils/SSE.kt +++ b/src/commonMain/kotlin/io/github/agrevster/pocketbaseKotlin/services/utils/SSE.kt @@ -121,5 +121,5 @@ internal sealed interface SseRawEvent { data class Id(val value: EventId) : SseRawEvent data class Event(val value: EventType) : SseRawEvent data class Data(val value: EventData) : SseRawEvent - object End : SseRawEvent + data object End : SseRawEvent } \ No newline at end of file diff --git a/src/commonTest/kotlin/PocketbaseClient.kt b/src/commonTest/kotlin/PocketbaseClient.kt index 42350d2..fb3633e 100644 --- a/src/commonTest/kotlin/PocketbaseClient.kt +++ b/src/commonTest/kotlin/PocketbaseClient.kt @@ -46,7 +46,7 @@ class PocketbaseClient { // EMAIL PASSWORD val adminLogin = "admin@test.com" to "test12345!" - val adminId = "z49xvnuw8tzfjrv" + val adminId = "gic6si5w1wndod3" } } \ No newline at end of file