chore: Refactoring event processors and service architecture (#2495)

This commit is contained in:
Tom Moor
2021-08-27 21:42:13 -07:00
committed by GitHub
parent 86f008293a
commit 28aef82af9
61 changed files with 1610 additions and 1498 deletions

View File

@ -54,6 +54,7 @@ export default async function userInviter({
service: null,
});
users.push(newUser);
await Event.create({
name: "users.invite",
actorId: user.id,
@ -64,7 +65,8 @@ export default async function userInviter({
},
ip,
});
await mailer.invite({
await mailer.sendTemplate("invite", {
to: invite.email,
name: invite.name,
actorName: user.name,