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
@@ -14,6 +14,13 @@ const seedSpoon = async (t: ReturnType<typeof convexTest>) =>
email: 'maintenance-thread@example.com',
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',