Skip to content

Commit a24e618

Browse files
committed
Use ParseValues for dotnet between queries
1 parent 3a10f1f commit a24e618

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
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)

0 commit comments

Comments
 (0)