chore: Switch to web-push gem (#6390)

- The previous gem, `webpush` was last updated a while ago. Also, with the recent ruby upgrade, we needed a fix for zaru/webpush#106. Hence switching to the `web-push` gem where the issues are fixed.
This commit is contained in:
Sojan Jose
2023-02-03 18:55:22 +05:30
committed by GitHub
parent 46eeee7d92
commit 38aee8d9ea
5 changed files with 15 additions and 24 deletions

View File

@@ -12,7 +12,7 @@ class VapidService
return config['VAPID_KEYS'] if config['VAPID_KEYS'].present?
# keys don't exist in the database. so let's generate and save them
keys = Webpush.generate_key
keys = WebPush.generate_key
# TODO: remove the logic on environment variables when we completely deprecate
public_key = ENV.fetch('VAPID_PUBLIC_KEY') { keys.public_key }
private_key = ENV.fetch('VAPID_PRIVATE_KEY') { keys.private_key }