chore: Update dependencies to the latest versions (#5033)
This commit is contained in:
parent
ea1a27c7d4
commit
4187428729
122 changed files with 546 additions and 526 deletions
|
@ -14,8 +14,8 @@ class VapidService
|
|||
# keys don't exist in the database. so let's generate and save them
|
||||
keys = Webpush.generate_key
|
||||
# TODO: remove the logic on environment variables when we completely deprecate
|
||||
public_key = ENV['VAPID_PUBLIC_KEY'] || keys.public_key
|
||||
private_key = ENV['VAPID_PRIVATE_KEY'] || keys.private_key
|
||||
public_key = ENV.fetch('VAPID_PUBLIC_KEY') { keys.public_key }
|
||||
private_key = ENV.fetch('VAPID_PRIVATE_KEY') { keys.private_key }
|
||||
|
||||
i = InstallationConfig.where(name: 'VAPID_KEYS').first_or_create(value: { public_key: public_key, private_key: private_key })
|
||||
i.value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue