Added link to dagens in notifcation

This commit is contained in:
Kasper Rynning-Tønnesen
2020-03-17 14:44:05 +01:00
parent 9db73c8c01
commit 7dfb14fa0f

View File

@@ -45,7 +45,8 @@ router.route("/log/wines").post(mustBeAuthenticated, async (req, res) => {
let subscription = subs[i]; //get subscription from your databse here.
const message = JSON.stringify({
message: "Dagens vin er lagt til, se den på lottis.vin/dagens!",
title: "Ny vin!"
title: "Ny vin!",
link: "/#/dagens"
});
sub.sendNotification(subscription, message);
}