Skip to content

Commit

Permalink
fix: query objects doesn't dispatch properly (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 authored Nov 30, 2021
1 parent fe67c88 commit 79b760f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

### main

[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/2.3.0...main)
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/2.3.1...main)
* _Contributing to this repo? Add info about your change here to be included in the next release_

### 2.3.1
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/2.3.0...2.3.1)

__Fixes__
- Fixed an issue querying an object didn't dispatch to the proper queue which can cause app crashes ([#293](https://github.com/parse-community/Parse-Swift/pull/293)), thanks to [Corey Baker](https://github.com/cbaker6).

### 2.3.0
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/2.2.6...2.3.0)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import PackageDescription
let package = Package(
name: "YOUR_PROJECT_NAME",
dependencies: [
.package(url: "https://github.com/parse-community/Parse-Swift", from: "2.2.4"),
.package(url: "https://github.com/parse-community/Parse-Swift", from: "2.3.1"),
]
)
```
Expand Down
12 changes: 7 additions & 5 deletions Sources/ParseSwift/API/API+NonParseBodyCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ internal extension API {
URLSession.parse.dataTask(with: urlRequest,
callbackQueue: callbackQueue,
mapper: mapper) { result in
switch result {
callbackQueue.async {
switch result {

case .success(let decoded):
completion(.success(decoded))
case .failure(let error):
completion(.failure(error))
case .success(let decoded):
completion(.success(decoded))
case .failure(let error):
completion(.failure(error))
}
}
}
case .failure(let error):
Expand Down
2 changes: 1 addition & 1 deletion Sources/ParseSwift/ParseConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation

enum ParseConstants {
static let sdk = "swift"
static let version = "2.3.0"
static let version = "2.3.1"
static let fileManagementDirectory = "parse/"
static let fileManagementPrivateDocumentsDirectory = "Private Documents/"
static let fileManagementLibraryDirectory = "Library/"
Expand Down

0 comments on commit 79b760f

Please sign in to comment.