mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 20:36:01 +01:00
Use fetch to get contact_email from config in webpush app migration
This commit is contained in:
parent
22a84ab818
commit
67423699b6
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class AddWebpushApp < ActiveRecord::Migration[6.1]
|
|||
vapid_keypair = Webpush.generate_key.to_hash
|
||||
app = Rpush::Webpush::App.new
|
||||
app.name = "webpush"
|
||||
app.certificate = vapid_keypair.merge(subject: APP_CONFIG["contact_email"]).to_json
|
||||
app.certificate = vapid_keypair.merge(subject: APP_CONFIG.fetch("contact_email")).to_json
|
||||
app.connections = 1
|
||||
app.save!
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue