Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
fix email (#1188)
Thibault Le Ouaya2672bff3403
diff --git a/apps/workflows/src/cron/monitor.ts b/apps/workflows/src/cron/monitor.tsindex 1692e3224..6d729399c 100644--- a/apps/workflows/src/cron/monitor.ts+++ b/apps/workflows/src/cron/monitor.ts@@ -202,7 +202,6 @@ export async function Step14Days(userId: number, workFlowRunTimestamp: number) {reply_to: "[email protected]",react: MonitorDeactivationEmail({- lastLogin: new Date(),deactivateAt: new Date(new Date().setDate(new Date().getDate() + 14)),}),});@@ -240,7 +239,6 @@ export async function Step3Days(userId: number, workFlowRunTimestamp: number) {reply_to: "[email protected]",react: MonitorDeactivationEmail({- lastLogin: new Date(workFlowRunTimestamp),deactivateAt: new Date(new Date().setDate(new Date().getDate() + 3)),}),});diff --git a/packages/emails/emails/monitor-deactivation.tsx b/packages/emails/emails/monitor-deactivation.tsxindex 6731e256e..538c0ba30 100644--- a/packages/emails/emails/monitor-deactivation.tsx+++ b/packages/emails/emails/monitor-deactivation.tsx@@ -14,7 +14,7 @@ import { Layout } from "./_components/layout";import { styles } from "./_components/styles";export const MonitorDeactivationSchema = z.object({- lastLogin: z.coerce.date(),+ // lastLogin: z.coerce.date(),deactivateAt: z.coerce.date(),});@@ -23,7 +23,7 @@ export type MonitorDeactivationProps = z.infer<>;const MonitorDeactivationEmail = ({- lastLogin,+ // lastLogin,deactivateAt,}: MonitorDeactivationProps) => {return (@@ -41,7 +41,7 @@ const MonitorDeactivationEmail = ({deactivating monitors for free account if you have not logged in forthe last 2 months.</Text>- <Text>Your last login was {lastLogin.toDateString()}.</Text>+ {/* <Text>Your last login was {lastLogin.toDateString()}.</Text> */}<Text>Your monitor(s) will be deactivated on {deactivateAt.toDateString()}.@@ -70,7 +70,7 @@ const MonitorDeactivationEmail = ({};MonitorDeactivationEmail.PreviewProps = {- lastLogin: new Date(new Date().setDate(new Date().getDate() - 100)),+ // lastLogin: new Date(new Date().setDate(new Date().getDate() - 100)),deactivateAt: new Date(new Date().setDate(new Date().getDate() + 7)),} satisfies MonitorDeactivationProps;diff --git a/packages/emails/emails/monitor-paused.tsx b/packages/emails/emails/monitor-paused.tsxindex a5d292176..97afc11e2 100644--- a/packages/emails/emails/monitor-paused.tsx+++ b/packages/emails/emails/monitor-paused.tsx@@ -9,7 +9,6 @@ import {Preview,Text,} from "@react-email/components";-import { z } from "zod";import { Layout } from "./_components/layout";import { styles } from "./_components/styles";