From e6374c4994105d713f3a54eac2e5385d79a8ed98 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 4 Oct 2022 08:55:44 -0600 Subject: [PATCH] Fix title, send out the remaining emails today --- functions/src/unsubscribe.ts | 4 ++-- functions/src/weekly-markets-emails.ts | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/functions/src/unsubscribe.ts b/functions/src/unsubscribe.ts index 0429fcd6..b8f452c6 100644 --- a/functions/src/unsubscribe.ts +++ b/functions/src/unsubscribe.ts @@ -63,7 +63,7 @@ export const unsubscribe: EndpointDefinition = { xmlns:o="urn:schemas-microsoft-com:office:office"> - Manifold Markets 7th Day Anniversary Gift! + Unsubscribe from Manifold Markets emails @@ -216,7 +216,7 @@ export const unsubscribe: EndpointDefinition = { xmlns:o="urn:schemas-microsoft-com:office:office"> - Manifold Markets 7th Day Anniversary Gift! + Unsubscribe from Manifold Markets emails diff --git a/functions/src/weekly-markets-emails.ts b/functions/src/weekly-markets-emails.ts index 7c6f21a4..68063f95 100644 --- a/functions/src/weekly-markets-emails.ts +++ b/functions/src/weekly-markets-emails.ts @@ -17,8 +17,9 @@ import { filterDefined } from '../../common/util/array' export const weeklyMarketsEmails = functions .runWith({ secrets: ['MAILGUN_KEY'], memory: '4GB' }) - // every minute on Monday for an hour at 12pm PT (UTC -07:00) - .pubsub.schedule('* 19 * * 1') + // TODO change back to Monday after the rest of the emails go out + // every minute on Tuesday for 2 hours starting at 12pm PT (UTC -07:00) + .pubsub.schedule('* 19-20 * * 2') .timeZone('Etc/UTC') .onRun(async () => { await sendTrendingMarketsEmailsToAllUsers() @@ -53,7 +54,7 @@ async function sendTrendingMarketsEmailsToAllUsers() { !user.weeklyTrendingEmailSent ) }) - .slice(150) // Send the emails out in batches + .slice(125) // Send the emails out in batches log( 'Sending weekly trending emails to', privateUsersToSendEmailsTo.length,