Skip to content

Commit 606e6d6

Browse files
committed
Working
1 parent 14f401b commit 606e6d6

File tree

4 files changed

+3
-27
lines changed

4 files changed

+3
-27
lines changed

ParseSwift.playground/Pages/6 - Installation.xcplaygroundpage/Contents.swift

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -71,30 +71,7 @@ DispatchQueue.main.async {
7171
case .success(let updatedInstallation):
7272
print("Successfully save myCustomInstallationKey to ParseServer: \(updatedInstallation)")
7373
case .failure(let error):
74-
assertionFailure("Failed to update installation: \(error)")
75-
}
76-
}
77-
78-
//: Looking at the output of user from the previous login, it only has
79-
//: a pointer to the `score`and `targetScore` fields. You can fetch using `include` to
80-
//: get the score.
81-
Installation.current?.fetch(includeKeys: ["score"]) { result in
82-
switch result {
83-
case .success(let fetched):
84-
print("Successfully fetched user with score key: \(fetched)")
85-
case .failure(let error):
86-
print("Error fetching score: \(error)")
87-
}
88-
}
89-
90-
//: The `target` score is still missing. You can get all pointer fields at
91-
//: once by including `["*"]`.
92-
Installation.current?.fetch(includeKeys: ["*"]) { result in
93-
switch result {
94-
case .success(let fetched):
95-
print("Successfully fetched user with all keys: \(fetched)")
96-
case .failure(let error):
97-
print("Error fetching score: \(error)")
74+
print("Failed to update installation: \(error)")
9875
}
9976
}
10077
}

Sources/ParseSwift/API/API+Commands.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ internal extension API {
240240
}
241241
}
242242
urlRequest.httpMethod = method.rawValue
243-
print(urlRequest)
244243
return .success(urlRequest)
245244
}
246245

Sources/ParseSwift/Objects/ParseObject.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public extension Sequence where Element: ParseObject {
444444
// MARK: CustomDebugStringConvertible
445445
extension ParseObject {
446446
public var debugDescription: String {
447-
guard let descriptionData = try? ParseCoding.parseEncoder().encode(self, skipKeys: .none),
447+
guard let descriptionData = try? ParseCoding.jsonEncoder().encode(self),
448448
let descriptionString = String(data: descriptionData, encoding: .utf8) else {
449449
return "\(className) ()"
450450
}

Sources/ParseSwift/Types/ParseCloud.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ extension ParseCloud {
117117
// MARK: CustomDebugStringConvertible
118118
extension ParseCloud {
119119
public var debugDescription: String {
120-
guard let descriptionData = try? ParseCoding.parseEncoder().encode(self, skipKeys: .none),
120+
guard let descriptionData = try? ParseCoding.jsonEncoder().encode(self),
121121
let descriptionString = String(data: descriptionData, encoding: .utf8) else {
122122
return "\(functionJobName)"
123123
}

0 commit comments

Comments
 (0)