more gmail setup

This commit is contained in:
Dobromir Popov
2024-04-13 19:09:40 +03:00
parent 0360ad4809
commit 0a51e8f70d
4 changed files with 5 additions and 4 deletions

View File

@ -269,9 +269,10 @@ export default async function handler(req, res) {
let pubsToSend = subscribedPublishers.concat(availablePublishers).
filter((item, index, self) =>
index === self.findIndex((t) => (
t.email === item.email
))
t.email === item.email //and exclude the user himself
)) //&& item.email !== user.email
);
console.log("Sending CoverMe request to " + pubsToSend.length + " publishers");
//send email to all subscribed publishers
for (let i = 0; i < pubsToSend.length; i++) {