fix: add /userId partition key to scheduler schedule+webhook collections
This commit is contained in:
parent
d4cc696e02
commit
96015be313
@ -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 ─────────────────────────────────────────────────
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user