feat: Automatic invite reminder email (#3354)

* feat: Add user flags concept, for tracking bits on a user

* feat: Example flag usage for user invite resend abuse

* wip

* test

* fix: Set correct flag
This commit is contained in:
Tom Moor
2022-04-12 20:12:33 -07:00
committed by GitHub
parent 5520317ce1
commit 86f1645199
11 changed files with 237 additions and 6 deletions

View File

@@ -62,6 +62,7 @@ export default async function userInviter({
service: null,
isAdmin: invite.role === "admin",
isViewer: invite.role === "viewer",
invitedById: user.id,
flags: {
[UserFlag.InviteSent]: 1,
},