Update route
This commit is contained in:
parent
910f7e5f91
commit
e4883f9b2b
@ -14,7 +14,8 @@ let package = Package(
|
|||||||
targets: ["Push"]),
|
targets: ["Push"]),
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://christophhagen.de/git/ch/Push-API.git", from: "0.5.0"),
|
.package(url: "https://christophhagen.de/git/ch/Push-API.git", from: "0.7.2"),
|
||||||
|
.package(url: "https://github.com/kylebrowning/APNSwift.git", from: "4.0.0"),
|
||||||
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "3.0.0")
|
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "3.0.0")
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
|
@ -76,7 +76,8 @@ public final class PushClient {
|
|||||||
*/
|
*/
|
||||||
public func getUnapprovedDevices(masterKey: String) async -> [DeviceRegistration]? {
|
public func getUnapprovedDevices(masterKey: String) async -> [DeviceRegistration]? {
|
||||||
let hash = hash(masterKey)
|
let hash = hash(masterKey)
|
||||||
guard let data = await post(.listUnapprovedDevices, bodyData: hash) else {
|
let request = AdminRequest(keyHash: hash, application: application)
|
||||||
|
guard let data = await post(.listUnapprovedDevices, body: request) else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
do {
|
do {
|
||||||
|
Loading…
Reference in New Issue
Block a user