Update server/server.js

This commit is contained in:
Frank Elsinga 2025-05-18 01:10:12 +02:00 committed by GitHub
parent d179a468a1
commit 43c3fda914
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1498,8 +1498,8 @@ let needSetup = false;
log.debug("webpush", "Generating new VAPID keys"); log.debug("webpush", "Generating new VAPID keys");
const vapidKeys = webpush.generateVAPIDKeys(); const vapidKeys = webpush.generateVAPIDKeys();
await Settings.set("webpushPublicVapidKey", vapidKeys.publicKey);
await Settings.set("webpushPrivateVapidKey", vapidKeys.privateKey); await Settings.set("webpushPrivateVapidKey", vapidKeys.privateKey);
await Settings.set("webpushPublicVapidKey", vapidKeys.publicKey);
publicVapidKey = vapidKeys.publicKey; publicVapidKey = vapidKeys.publicKey;
} }