feat(web): set test open date
This commit is contained in:
@@ -351,8 +351,8 @@ export async function sendCancellationEmail(params: {
|
||||
|
||||
function reminderHtml(params: { firstName?: string | null }) {
|
||||
const greeting = params.firstName ? `Hoi ${params.firstName},` : "Hoi!";
|
||||
// Registration opens at 2026-03-16T19:00:00+01:00
|
||||
const openDateStr = "maandag 16 maart 2026 om 19:00";
|
||||
// Registration opens at 2026-03-11T10:30:00+01:00
|
||||
const openDateStr = "woensdag 11 maart 2026 om 10:30";
|
||||
const registrationUrl = `${baseUrl}/#registration`;
|
||||
|
||||
return `<!DOCTYPE html>
|
||||
|
||||
@@ -18,7 +18,7 @@ import { generateQrSecret } from "../lib/drinkkaart-utils";
|
||||
import { drinkkaartRouter } from "./drinkkaart";
|
||||
|
||||
// Registration opens at this date — reminders fire 1 hour before
|
||||
const REGISTRATION_OPENS_AT = new Date("2026-03-10T17:00:00+01:00");
|
||||
const REGISTRATION_OPENS_AT = new Date("2026-03-11T10:30:00+01:00");
|
||||
const REMINDER_WINDOW_START = new Date(
|
||||
REGISTRATION_OPENS_AT.getTime() - 60 * 60 * 1000,
|
||||
);
|
||||
|
||||
@@ -35,7 +35,7 @@ export const web = await TanStackStart("web", {
|
||||
// Cron secret for protected scheduled endpoints
|
||||
CRON_SECRET: getEnvVar("CRON_SECRET"),
|
||||
},
|
||||
// Fire every hour so the reminder check can run at 18:00 on 2026-03-16
|
||||
// Fire every hour so the reminder check can run at 09:30 on 2026-03-11
|
||||
crons: ["0 * * * *"],
|
||||
domains: ["kunstenkamp.be", "www.kunstenkamp.be"],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user