Bugfix: FCM push subscription builder fix (#930)

This commit is contained in:
Sojan Jose 2020-06-06 20:53:30 +05:30 committed by GitHub
parent ede4dd9cb0
commit 915eefdc36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ class NotificationSubscriptionBuilder
def identifier def identifier
@identifier ||= params[:subscription_attributes][:endpoint] if params[:subscription_type] == 'browser_push' @identifier ||= params[:subscription_attributes][:endpoint] if params[:subscription_type] == 'browser_push'
@identifier ||= params[:device_id] if params[:subscription_type] == 'fcm' @identifier ||= params[:subscription_attributes][:device_id] if params[:subscription_type] == 'fcm'
@identifier @identifier
end end