mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 13:54:02 +00:00
fix: resolve remaining format and test failures
Co-authored-by: claw <stanislavkalishin+claw@gmail.com>
This commit is contained in:
@@ -351,7 +351,7 @@ describe('createAdHocNotificationService', () => {
|
||||
const result = await service.updateNotification({
|
||||
notificationId: created.id,
|
||||
viewerMemberId: 'creator',
|
||||
scheduledFor: Temporal.Instant.from('2026-03-25T09:00:00Z'),
|
||||
scheduledFor: Temporal.Instant.from('2099-03-25T09:00:00Z'),
|
||||
timePrecision: 'exact',
|
||||
deliveryMode: 'dm_selected',
|
||||
dmRecipientMemberIds: ['alice', 'bob'],
|
||||
@@ -360,7 +360,7 @@ describe('createAdHocNotificationService', () => {
|
||||
|
||||
expect(result.status).toBe('updated')
|
||||
if (result.status === 'updated') {
|
||||
expect(result.notification.scheduledFor.toString()).toBe('2026-03-25T09:00:00Z')
|
||||
expect(result.notification.scheduledFor.toString()).toBe('2099-03-25T09:00:00Z')
|
||||
expect(result.notification.deliveryMode).toBe('dm_selected')
|
||||
expect(result.notification.dmRecipientMemberIds).toEqual(['alice', 'bob'])
|
||||
}
|
||||
|
||||
@@ -97,7 +97,10 @@ export interface ScheduledDispatchService {
|
||||
cancelAdHocNotification(notificationId: string, cancelledAt?: Instant): Promise<void>
|
||||
reconcileHouseholdBuiltInDispatches(householdId: string, asOf?: Instant): Promise<void>
|
||||
reconcileAllBuiltInDispatches(asOf?: Instant): Promise<void>
|
||||
listDueDispatches(input?: { asOf?: Instant; limit?: number }): Promise<readonly ScheduledDispatchRecord[]>
|
||||
listDueDispatches(input?: {
|
||||
asOf?: Instant
|
||||
limit?: number
|
||||
}): Promise<readonly ScheduledDispatchRecord[]>
|
||||
getDispatchById(dispatchId: string): Promise<ScheduledDispatchRecord | null>
|
||||
claimDispatch(dispatchId: string): Promise<boolean>
|
||||
releaseDispatch(dispatchId: string): Promise<void>
|
||||
|
||||
Reference in New Issue
Block a user