mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 19:34:02 +00:00
feat(infra): add reminder scheduler jobs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user