Skip to content

Commit

Permalink
Merge pull request #387 from Kinvey/mapostol-fix-build
Browse files Browse the repository at this point in the history
Fix build and release
  • Loading branch information
ventsislav-georgiev authored Feb 17, 2022
2 parents da79062 + 5971ae2 commit deb36a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Kinvey/Kinvey/Persistable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public protocol Persistable: JSONCodable {
extension Persistable where Self: Entity {

public func observe(_ block: @escaping (ObjectChange<Self>) -> Void) -> AnyNotificationToken? {
let completionHandler = { (objectChange: RealmSwift.ObjectChange) in
let completionHandler = { (objectChange: RealmSwift.ObjectChange<Self>) in
switch objectChange {
case .change(let propertyChanges):
for propertyChange in propertyChanges.1 {
Expand Down
2 changes: 1 addition & 1 deletion scripts/github-release/Sources/github-release/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func publish(url: String, completionHandler: @escaping () -> Void) {
request.httpMethod = "PATCH"
request.setValue("token \(githubToken!)", forHTTPHeaderField: "Authorization")
let body = ["draft" : false]
request.httpBody = try? JSONSerialization.data(withJSONObject: body, options: JSONSerialization.WritingOptions.sortedKeys)
request.httpBody = try? JSONSerialization.data(withJSONObject: body)

let task = session.dataTask(with: request) { (data, response, error) -> Void in
if let httpResponse = response as? HTTPURLResponse,
Expand Down

0 comments on commit deb36a3

Please sign in to comment.