File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,6 @@ public class Query {
28
28
buildQueryWhere(attribute, is: "search", to: value)
29
29
}
30
30
31
- public static func buildQueryWhere(_ attribute: String, is method: String, to value: Any) -> String {
32
- switch value {
33
- case let value as Array<Any >:
34
- return "\(method)(\"\(attribute)\", [\(value.map { parseValues($0) }.joined(separator: ",") )])"
35
- default:
36
- return "\(method)(\"\(attribute)\", [\(parseValues(value))])"
37
- }
38
- }
39
-
40
31
public static func orderAsc(_ attribute: String) -> String {
41
32
"orderAsc(\"\(attribute)\")"
42
33
}
@@ -61,6 +52,15 @@ public class Query {
61
52
"offset(\(offset))"
62
53
}
63
54
55
+ public static func buildQueryWhere(_ attribute: String, is method: String, to value: Any) -> String {
56
+ switch value {
57
+ case let value as Array<Any >:
58
+ return "\(method)(\"\(attribute)\", [\(value.map { parseValues($0) }.joined(separator: ",") )])"
59
+ default:
60
+ return "\(method)(\"\(attribute)\", [\(parseValues(value))])"
61
+ }
62
+ }
63
+
64
64
private static func parseValues(_ value: Any) -> String {
65
65
switch value {
66
66
case let value as String:
You can’t perform that action at this time.
0 commit comments