Skip to content

Commit

Permalink
Cleaned up code
Browse files Browse the repository at this point in the history
  • Loading branch information
agrevster committed Jun 17, 2024
1 parent 7b50d01 commit 9c19a2c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion src/commonTest/kotlin/PocketbaseClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class PocketbaseClient {

// EMAIL PASSWORD
val adminLogin = "admin@test.com" to "test12345!"
val adminId = "z49xvnuw8tzfjrv"
val adminId = "gic6si5w1wndod3"
}

}

0 comments on commit 9c19a2c

Please sign in to comment.