Skip to content

Commit f817a10

Browse files
committed
only send emails to events with open registrations
1 parent c7ac187 commit f817a10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/emails/emails.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ export async function ProcessTemplate(template: EmailTemplate): Promise<void> {
171171
}
172172
const tickets = await prisma.ticket.findMany({
173173
where: {
174+
event: {
175+
registrationsOpen: true
176+
},
174177
AND: [
175178
{
176179
type: template.sendTo,

0 commit comments

Comments
 (0)