Skip to content

Commit 423a33b

Browse files
update fcm docs (invalid_token config) (#480)
1 parent 078053d commit 423a33b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/delivery_methods/fcm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Firebase Cloud Messaging Notifications may fail delivery if the user has removed
132132
```ruby
133133
class CommentNotification
134134
deliver_by :fcm do |config|
135-
config.invalid_token = ->(device_token) { device_token.destroy }
135+
config.invalid_token = ->(device_token) { NotificationToken.find_by(token: device_token).destroy }
136136
end
137137
end
138138
```

0 commit comments

Comments
 (0)