Skip to content

Commit

Permalink
☄️ Deprecate batchSend
Browse files Browse the repository at this point in the history
Closes #45
  • Loading branch information
MihaelIsaev committed Jun 14, 2024
1 parent 3414d98 commit e80bb25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/FCM/Helpers/FCM+BatchSend.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@ import Foundation
import Vapor

extension FCM {
@available(*, deprecated, message: "🧨 Requests to the endpoint will start failing after 6/21/2024. Migrate to the standard send method.")
public func batchSend(_ message: FCMMessageDefault, tokens: String...) -> EventLoopFuture<[String]> {
_send(message, tokens: tokens)
}

@available(*, deprecated, message: "🧨 Requests to the endpoint will start failing after 6/21/2024. Migrate to the standard send method.")
public func batchSend(_ message: FCMMessageDefault, tokens: String..., on eventLoop: EventLoop) -> EventLoopFuture<[String]> {
_send(message, tokens: tokens).hop(to: eventLoop)
}

@available(*, deprecated, message: "🧨 Requests to the endpoint will start failing after 6/21/2024. Migrate to the standard send method.")
public func batchSend(_ message: FCMMessageDefault, tokens: [String]) -> EventLoopFuture<[String]> {
_send(message, tokens: tokens)
}

@available(*, deprecated, message: "🧨 Requests to the endpoint will start failing after 6/21/2024. Migrate to the standard send method.")
public func batchSend(_ message: FCMMessageDefault, tokens: [String], on eventLoop: EventLoop) -> EventLoopFuture<[String]> {
_send(message, tokens: tokens).hop(to: eventLoop)
}
Expand Down

0 comments on commit e80bb25

Please sign in to comment.