Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaelIsaev committed Jan 5, 2020
1 parent ae99fd0 commit c8eed24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Edit your `Package.swift`

```swift
//add this repo to dependencies
.package(url: "https://github.com/MihaelIsaev/FCM.git", from: "0.7.4")
.package(url: "https://github.com/MihaelIsaev/FCM.git", from: "1.0.0")
//and don't forget about targets
//"FCM"
```
Expand Down Expand Up @@ -146,7 +146,7 @@ extension Firebaseable {
}
return try Self.sendPush(title: title, message: message, token: token, on: req)
}

static func sendPush(title: String, message: String, token: String, on container: Container) throws -> Future<Void> {
let fcm = try container.make(FCM.self)
let message = FCMMessage(token: token, notification: FCMNotification(title: title, body: message))
Expand Down

0 comments on commit c8eed24

Please sign in to comment.