Skip to content

Commit 2df9b2f

Browse files
committed
Use parseValue for between queries kotlin
1 parent a24e618 commit 2df9b2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/kotlin/src/main/kotlin/io/appwrite/Query.kt.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class Query {
2020

2121
fun isNotNull(attribute: String) = "isNotNull(\"${attribute}\")"
2222

23-
fun between(attribute: String, start: Int, end: Int) = "between(\"${attribute}\", ${start}, ${end})"
23+
fun between(attribute: String, start: Int, end: Int) = "between(\"${attribute}\", ${parseValues(start)}, ${parseValues(end)})"
2424

25-
fun between(attribute: String, start: Double, end: Double) = "between(\"${attribute}\", ${start}, ${end})"
25+
fun between(attribute: String, start: Double, end: Double) = "between(\"${attribute}\", ${parseValues(start)}, ${parseValues(end)})"
2626

27-
fun between(attribute: String, start: String, end: String) = "between(\"${attribute}\", \"${start}\", \"${end}\")"
27+
fun between(attribute: String, start: String, end: String) = "between(\"${attribute}\", ${parseValues(start)}, ${parseValues(end)})"
2828

2929
fun startsWith(attribute: String, value: String) = Query.addQuery(attribute, "startsWith", value)
3030

0 commit comments

Comments
 (0)