mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 14:04:04 +00:00
feat(bot): move ad hoc notifications to llm parsing
This commit is contained in:
@@ -15,7 +15,7 @@ function dueNotification(
|
||||
creatorMemberId: input.creatorMemberId ?? 'creator',
|
||||
assigneeMemberId: input.assigneeMemberId ?? 'assignee',
|
||||
originalRequestText: 'raw',
|
||||
notificationText: input.notificationText ?? 'Ping Georgiy',
|
||||
notificationText: input.notificationText ?? 'Georgiy, time to call already.',
|
||||
timezone: input.timezone ?? 'Asia/Tbilisi',
|
||||
scheduledFor: input.scheduledFor ?? Temporal.Instant.from('2026-03-23T09:00:00Z'),
|
||||
timePrecision: input.timePrecision ?? 'exact',
|
||||
@@ -108,7 +108,7 @@ describe('createAdHocNotificationJobsHandler', () => {
|
||||
|
||||
expect(payload.ok).toBe(true)
|
||||
expect(payload.notifications[0]?.outcome).toBe('sent')
|
||||
expect(sentTopicMessages[0]).toContain('tg://user?id=222')
|
||||
expect(sentTopicMessages[0]).toContain('Georgiy, time to call already.')
|
||||
expect(sentNotifications).toEqual(['notif-1'])
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user