feat: set opening date!

This commit is contained in:
2026-03-11 12:37:01 +01:00
parent 42156209d8
commit 0c8e827cda
5 changed files with 6 additions and 6 deletions

View File

@@ -2,4 +2,4 @@
* Single source-of-truth for when registration opens. * Single source-of-truth for when registration opens.
* Change this date to reschedule — all gating logic imports from here. * Change this date to reschedule — all gating logic imports from here.
*/ */
export const REGISTRATION_OPENS_AT = new Date("2026-03-11T10:30:00+01:00"); export const REGISTRATION_OPENS_AT = new Date("2026-03-16T19:00:00+01:00");

View File

@@ -142,7 +142,7 @@ export const Route = createRootRouteWithContext<RouterAppContext>()({
price: "0", price: "0",
priceCurrency: "EUR", priceCurrency: "EUR",
availability: "https://schema.org/InStock", availability: "https://schema.org/InStock",
validFrom: "2026-03-01T00:00:00+02:00", validFrom: "2026-03-16T19:00:00+01:00",
}, },
}), }),
}, },

View File

@@ -371,8 +371,8 @@ export async function sendCancellationEmail(params: {
function reminderHtml(params: { firstName?: string | null }) { function reminderHtml(params: { firstName?: string | null }) {
const greeting = params.firstName ? `Hoi ${params.firstName},` : "Hoi!"; const greeting = params.firstName ? `Hoi ${params.firstName},` : "Hoi!";
// Registration opens at 2026-03-11T10:30:00+01:00 // Registration opens at 2026-03-16T19:00:00+01:00
const openDateStr = "woensdag 11 maart 2026 om 10:30"; const openDateStr = "maandag 16 maart 2026 om 19:00";
const registrationUrl = `${baseUrl}/#registration`; const registrationUrl = `${baseUrl}/#registration`;
return `<!DOCTYPE html> return `<!DOCTYPE html>

View File

@@ -30,7 +30,7 @@ import { generateQrSecret } from "../lib/drinkkaart-utils";
import { drinkkaartRouter } from "./drinkkaart"; import { drinkkaartRouter } from "./drinkkaart";
// Registration opens at this date — reminders fire 1 hour before // Registration opens at this date — reminders fire 1 hour before
const REGISTRATION_OPENS_AT = new Date("2026-03-11T10:30:00+01:00"); const REGISTRATION_OPENS_AT = new Date("2026-03-16T19:00:00+01:00");
const REMINDER_WINDOW_START = new Date( const REMINDER_WINDOW_START = new Date(
REGISTRATION_OPENS_AT.getTime() - 60 * 60 * 1000, REGISTRATION_OPENS_AT.getTime() - 60 * 60 * 1000,
); );

View File

@@ -35,7 +35,7 @@ export const web = await TanStackStart("web", {
// Cron secret for protected scheduled endpoints // Cron secret for protected scheduled endpoints
CRON_SECRET: getEnvVar("CRON_SECRET"), CRON_SECRET: getEnvVar("CRON_SECRET"),
}, },
// Fire every hour so the reminder check can run at 09:30 on 2026-03-11 // Fire every hour so the reminder check can run at 18:00 on 2026-03-16
crons: ["0 * * * *"], crons: ["0 * * * *"],
domains: ["kunstenkamp.be", "www.kunstenkamp.be"], domains: ["kunstenkamp.be", "www.kunstenkamp.be"],
}); });