Add push logging

This commit is contained in:
artur 2024-03-05 15:04:05 +03:00
parent 781576d0ce
commit bf54da8f9d

View File

@ -73,7 +73,7 @@ async function push(psub) {
psub.id
);
try {
await webpush.sendNotification(
const r = await webpush.sendNotification(
psub.pushSubscription,
JSON.stringify(
{
@ -87,6 +87,7 @@ async function push(psub) {
}
)
);
console.log("push sent for", psub.pubkey, r);
} catch (e) {
console.log(
new Date(),