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

This commit is contained in:
Gabriel Brown committed 2026-07-11 16:08:22 -04:00
1 parent 4eb0c963ff
commit 3766a29871
7 files changed
+270 -2

No files matched your search

@@ -14,6 +14,13 @@ const seedSpoon = async (t: ReturnType<typeof convexTest>) =>
email: '[email protected]',
name: 'Maintenance Thread Owner',
});
// Disable email so the notification emit does not schedule the best-effort
// node email action, whose async logging would race test teardown.
await ctx.db.insert('notificationPreferences', {
userId: ownerId,
emailEnabled: false,
updatedAt: now,
});
const spoonId = await ctx.db.insert('spoons', {
ownerId,
name: 'Maintenance Thread Spoon',