Skip to content

Commit 7bebdd5

Browse files
authored
Mariano/notifs (#1725)
* chore(rules): add comprehensive and basic rules for Trigger.dev tasks * feat(jobs): add weekly task reminder job and email notification * chore: handle batches * chore: skip internal emails
1 parent c4745eb commit 7bebdd5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apps/app/src/jobs/tasks/task/weekly-task-reminder.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ export const weeklyTaskReminder = schedules.task({
7070
continue;
7171
}
7272

73+
// Skip internal trycomp.ai emails
74+
if (member.user.email.includes('@trycomp.ai')) {
75+
logger.info(`Skipping internal email: ${member.user.email}`);
76+
continue;
77+
}
78+
7379
emailPayloads.push({
7480
payload: {
7581
email: member.user.email,

0 commit comments

Comments
 (0)