Returning to not have pending requests
This commit is contained in:
@@ -70,6 +70,8 @@ router.route("/send-notification").post(async (req, res) => {
|
|||||||
let subscription = subs[i]; //get subscription from your databse here.
|
let subscription = subs[i]; //get subscription from your databse here.
|
||||||
sendNotification(subscription, message);
|
sendNotification(subscription, message);
|
||||||
}
|
}
|
||||||
|
res.json(true);
|
||||||
|
return;
|
||||||
});
|
});
|
||||||
|
|
||||||
schedule.scheduleJob(
|
schedule.scheduleJob(
|
||||||
|
|||||||
Reference in New Issue
Block a user