Remove NotificationSettings table (#5036
* helper * Add script to move notification settings * wip, removal of NotificationSettings * event name * iteration * test * test * Remove last of NotificationSettings model * refactor * More fixes * snapshots * Change emails to class instances for type safety * test * docs * Update migration for self-hosted * tsc
This commit is contained in:
@@ -42,14 +42,14 @@ export default class InviteReminderTask extends BaseTask<Props> {
|
||||
invitedBy &&
|
||||
user.getFlag(UserFlag.InviteReminderSent) === 0
|
||||
) {
|
||||
await InviteReminderEmail.schedule({
|
||||
await new InviteReminderEmail({
|
||||
to: user.email,
|
||||
name: user.name,
|
||||
actorName: invitedBy.name,
|
||||
actorEmail: invitedBy.email,
|
||||
teamName: user.team.name,
|
||||
teamUrl: user.team.url,
|
||||
});
|
||||
}).schedule();
|
||||
|
||||
user.incrementFlag(UserFlag.InviteReminderSent);
|
||||
await user.save({ transaction });
|
||||
|
||||
Reference in New Issue
Block a user