more gmail setup
This commit is contained in:
@ -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++) {
|
||||
|
Reference in New Issue
Block a user