Skip to content

Commit

Permalink
update fcm docs (invalid_token config) (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
matiassalles99 authored Aug 26, 2024
1 parent 078053d commit 423a33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/delivery_methods/fcm.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Firebase Cloud Messaging Notifications may fail delivery if the user has removed
```ruby
class CommentNotification
deliver_by :fcm do |config|
config.invalid_token = ->(device_token) { device_token.destroy }
config.invalid_token = ->(device_token) { NotificationToken.find_by(token: device_token).destroy }
end
end
```

0 comments on commit 423a33b

Please sign in to comment.