feat: skip pending members in sendMentionEmails

This commit is contained in:
Henry
2026-02-08 22:15:26 +00:00
parent 149277ef39
commit 1f0c780763
4 changed files with 7 additions and 2 deletions

View File

@@ -77,6 +77,8 @@ export async function sendMentionEmails({
membersToNotify.map(async (member) => {
const userId = member.user?.id;
const email = member.user?.email ?? member.email;
// Skip pending members (no userId) - they can be mentioned but won't receive emails
if (!userId || !email) return;
try {