chore: Update dependencies to the latest versions (#5033)

This commit is contained in:
Sojan Jose 2022-07-15 04:51:59 +02:00 committed by GitHub
parent ea1a27c7d4
commit 4187428729
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
122 changed files with 546 additions and 526 deletions

View file

@ -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