feat(notifications): emit at maintenance/turn/sync/reauth events

This commit is contained in:
Gabriel Brown
2026-07-11 16:08:22 -04:00
parent 4eb0c963ff
commit 3766a29871
7 changed files with 270 additions and 2 deletions
@@ -16,6 +16,13 @@ const seedConnection = async (
email: 'a@b.c',
name: 'A',
});
// Disable email so a reauth emit does not schedule the best-effort node
// email action, whose async logging would race test teardown.
await ctx.db.insert('notificationPreferences', {
userId,
emailEnabled: false,
updatedAt: now,
});
return await ctx.db.insert('gitConnections', {
userId,
provider: 'github',