feat(notifications): emit at maintenance/turn/sync/reauth events
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user