mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-16 01:16:47 +02:00
Update server/server.js
This commit is contained in:
parent
d179a468a1
commit
43c3fda914
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue