fix: add /userId partition key to scheduler schedule+webhook collections

This commit is contained in:
saravanakumardb1 2026-04-06 16:29:24 -07:00
parent d4cc696e02
commit 96015be313

View File

@ -93,11 +93,11 @@ const TriggerWebhookSchema = z.object({
// ── Repository helpers ───────────────────────────────────────────── // ── Repository helpers ─────────────────────────────────────────────
function scheduleCollection() { function scheduleCollection() {
return getCollection<PromptScheduleDoc>('note_prompt_schedules'); return getCollection<PromptScheduleDoc>('note_prompt_schedules', '/userId');
} }
function webhookCollection() { function webhookCollection() {
return getCollection<PromptWebhookDoc>('note_prompt_webhooks'); return getCollection<PromptWebhookDoc>('note_prompt_webhooks', '/userId');
} }
// ── Cron utilities ───────────────────────────────────────────────── // ── Cron utilities ─────────────────────────────────────────────────