Skip to content

Commit

Permalink
Merge pull request #44 from appwrite/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
abnegate authored Nov 20, 2023
2 parents c53379f + a8d1c8b commit d19fb1f
Show file tree
Hide file tree
Showing 13 changed files with 151 additions and 139 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Swift Package Manager](https://img.shields.io/github/v/release/appwrite/sdk-for-apple.svg?color=green&style=flat-square)
![License](https://img.shields.io/github/license/appwrite/sdk-for-apple.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.4.2-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.4.12-blue.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
Expand Down Expand Up @@ -31,7 +31,7 @@ Add the package to your `Package.swift` dependencies:

```swift
dependencies: [
.package(url: "git@github.com:appwrite/sdk-for-apple.git", from: "4.0.1"),
.package(url: "git@github.com:appwrite/sdk-for-apple.git", from: "4.0.2"),
],
```

Expand Down
2 changes: 1 addition & 1 deletion Sources/Appwrite/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ open class Client {
"x-sdk-name": "Apple",
"x-sdk-platform": "client",
"x-sdk-language": "apple",
"x-sdk-version": "4.0.1",
"x-sdk-version": "4.0.2",
"X-Appwrite-Response-Format": "1.4.0"
]

Expand Down
6 changes: 3 additions & 3 deletions Sources/Appwrite/Query.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ public class Query {
}

public static func between(_ attribute: String, start: Int, end: Int) -> String {
buildQueryWhere(attribute, is: "between", to: [start, end])
"between(\"\(attribute)\", \(start), \(end))"
}

public static func between(_ attribute: String, start: Double, end: Double) -> String {
buildQueryWhere(attribute, is: "between", to: [start, end])
"between(\"\(attribute)\", \(start), \(end))"
}

public static func between(_ attribute: String, start: String, end: String) -> String {
buildQueryWhere(attribute, is: "between", to: [start, end])
"between(\"\(attribute)\", \"\(start)\", \"\(end)\")"
}

public static func startsWith(_ attribute: String, value: String) -> String {
Expand Down
Loading

0 comments on commit d19fb1f

Please sign in to comment.