Skip to content

Commit 839559c

Browse files
committed
Merge branch 'chore-use-parsevalues' into 1.5.x
2 parents 21743f4 + 2df9b2f commit 839559c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

templates/dotnet/src/Appwrite/Query.cs.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@ namespace Appwrite
6363

6464
public static string Between(string attribute, string start, string end)
6565
{
66-
return $"between(\"{attribute}\", \"{start}\", \"{end}\")";
66+
return $"between(\"{attribute}\", {ParseValues(start)}, {ParseValues(end)})";
6767
}
6868

6969
public static string Between(string attribute, int start, int end)
7070
{
71-
return $"between(\"{attribute}\", {start}, {end})";
71+
return $"between(\"{attribute}\", {ParseValues(start)}, {ParseValues(end)})";
7272
}
7373

7474
public static string Between(string attribute, double start, double end)
7575
{
76-
return $"between(\"{attribute}\", {start}, {end})";
76+
return $"between(\"{attribute}\", {ParseValues(start)}, {ParseValues(end)})";
7777
}
7878

7979
public static string Select(List<string> attributes)

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)