fix: resolve remaining format and test failures

Co-authored-by: claw <stanislavkalishin+claw@gmail.com>
This commit is contained in:
2026-03-30 16:01:06 +02:00
parent ed2fbac284
commit 160d922b8b
4 changed files with 29 additions and 8 deletions

View File

@@ -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'])
}

View File

@@ -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>