feat(notifications): emit at maintenance/turn/sync/reauth events
This commit is contained in:
1 parent
4eb0c963ff
commit
3766a29871
7 files changed
+270
-2
No files matched your search
@@ -16,6 +16,13 @@ const seedConnection = async (
|
||||
email: '[email protected]',
|
||||
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',
|
||||
|
||||
Reference in new issue
Block a user