fix(signals): add missing source field to TaskSyncedEvent (#78)

TaskSyncedPayload in shared-types and ml/serving schemas both require
source, but TaskSyncedEvent in bus.ts and the todoist publish call both
omitted it — causing the JetStream consumer to nak every task.synced
message on validation failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-25 17:15:32 +00:00
parent 45416000f9
commit 352469162d
4 changed files with 11 additions and 10 deletions

View File

@@ -88,7 +88,7 @@ export class TodoistSignalSource implements SignalSource {
});
this.cache.set(userId, { signals, fetchedAt: Date.now() });
bus.publish('signals.task.synced', { userId, count: signals.length, syncedAt: now });
bus.publish('signals.task.synced', { userId, source: 'todoist', count: signals.length, syncedAt: now });
return signals;
}