feat(infra): add reminder scheduler jobs

This commit is contained in:
2026-03-08 22:23:19 +04:00
parent 1b08da4591
commit fd0680c8ef
18 changed files with 474 additions and 59 deletions

View File

@@ -8,7 +8,8 @@ describe('createBotWebhookServer', () => {
webhookSecret: 'secret-token',
webhookHandler: async () => new Response('ok', { status: 200 }),
scheduler: {
sharedSecret: 'scheduler-secret',
authorize: async (request) =>
request.headers.get('x-household-scheduler-secret') === 'scheduler-secret',
handler: async (_request, reminderType) =>
new Response(JSON.stringify({ ok: true, reminderType }), {
status: 200,