From 96015be313ac39b009210ab33ee14a01f7f1c5e4 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Mon, 6 Apr 2026 16:29:24 -0700 Subject: [PATCH] fix: add /userId partition key to scheduler schedule+webhook collections --- backend/src/modules/note-prompts/scheduler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/modules/note-prompts/scheduler.ts b/backend/src/modules/note-prompts/scheduler.ts index 098220c..157e323 100644 --- a/backend/src/modules/note-prompts/scheduler.ts +++ b/backend/src/modules/note-prompts/scheduler.ts @@ -93,11 +93,11 @@ const TriggerWebhookSchema = z.object({ // ── Repository helpers ───────────────────────────────────────────── function scheduleCollection() { - return getCollection('note_prompt_schedules'); + return getCollection('note_prompt_schedules', '/userId'); } function webhookCollection() { - return getCollection('note_prompt_webhooks'); + return getCollection('note_prompt_webhooks', '/userId'); } // ── Cron utilities ─────────────────────────────────────────────────