Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mike4aday authored Jul 18, 2018
1 parent 930fdc0 commit ec9407a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Let's say we want to retrieve a random zip/postal code from a [custom Apex REST]
first {
// Make GET request of custom Apex REST resource that returns a zip code as a string
return salesforce.apex(path: "/MyApexResourceThatEmitsRandomZip")
}.then { (result: Data) -> Promise<QueryResult<Record>> in
}.then { (result: Data) -> Promise<QueryResult<SObject>> in
// Query accounts in that zip code
guard let zip = String(data: result, encoding: .utf8) else {
throw NSError(domain: NSURLErrorDomain, code: NSURLErrorUnknown, userInfo: nil)
Expand Down

0 comments on commit ec9407a

Please sign in to comment.