Fix missing memoization in Web::PushNotificationWorker (#36085)
This commit is contained in:
@@ -87,7 +87,7 @@ class Web::PushNotificationWorker
|
|||||||
end
|
end
|
||||||
|
|
||||||
def web_push_request
|
def web_push_request
|
||||||
@web_push_request || WebPushRequest.new(@subscription)
|
@web_push_request ||= WebPushRequest.new(@subscription)
|
||||||
end
|
end
|
||||||
|
|
||||||
def push_notification_json
|
def push_notification_json
|
||||||
|
|||||||
Reference in New Issue
Block a user