fix(schedule): route daily set-remind phrases through ITL with recurrence
Memind CI / Test, build, and release guards (push) Failing after 3m4s
Memind CI / Test, build, and release guards (push) Failing after 3m4s
Support colloquial forms like「设置每天18:00提醒打卡」, persist daily metadata on commit, and schedule the next reminder after each delivery. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -50,7 +50,16 @@ export async function commitIntentDraft({
|
||||
sourceChannel: payload.sourceChannel ?? 'wechat',
|
||||
sourceMessageId: payload.sourceMessageId ?? draft.sourceMessageId,
|
||||
sourceText: payload.sourceText ?? draft.sourceText,
|
||||
metadata: { source: 'intent_transaction_layer' },
|
||||
metadata: {
|
||||
source: 'intent_transaction_layer',
|
||||
...(payload.recurrence === 'daily'
|
||||
? {
|
||||
recurrence: 'daily',
|
||||
dailyHour: Number(payload.hour),
|
||||
dailyMinute: Number(payload.minute ?? 0),
|
||||
}
|
||||
: {}),
|
||||
},
|
||||
});
|
||||
const reminder = await scheduleService.createReminder({
|
||||
userId,
|
||||
|
||||
Reference in New Issue
Block a user