This commit is contained in:
Atridad Lahiji 2023-06-07 22:31:43 -06:00 committed by atridadl
parent bec7138edd
commit 1fe4a912cd
No known key found for this signature in database
4 changed files with 10 additions and 3 deletions

View file

@ -25,6 +25,12 @@ const config = {
fixStyle: "inline-type-imports", fixStyle: "inline-type-imports",
}, },
], ],
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-ignore": "allow-with-description",
},
],
}, },
}; };

View file

@ -7,7 +7,7 @@ interface EmailTemplateProps {
export const Goodbye: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => ( export const Goodbye: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => (
<div> <div>
<h1>Welcome, {name}!</h1> <h1>Welcome, {name}!</h1>
<p>We're sorry to see you go!</p> <p>{"We're sorry to see you go!"}</p>
<p> <p>
Your data has been deleted, including all room history, user data, votes, Your data has been deleted, including all room history, user data, votes,
etc. etc.

View file

@ -144,7 +144,7 @@ export const userRouter = createTRPCRouter({
from: "no-reply@sprintpadawan.dev", from: "no-reply@sprintpadawan.dev",
to: user.email, to: user.email,
subject: "Sorry to see you go... 😭", subject: "Sorry to see you go... 😭",
//@ts-ignore //@ts-ignore: IDK why this doesn't work...
react: Goodbye({ name: user.name }), react: Goodbye({ name: user.name }),
}); });
await deleteFromCache(client, env.APP_ENV, `kv_usercount_admin`); await deleteFromCache(client, env.APP_ENV, `kv_usercount_admin`);

View file

@ -58,7 +58,8 @@ export const authOptions: NextAuthOptions = {
from: "no-reply@sprintpadawan.dev", from: "no-reply@sprintpadawan.dev",
to: user.email, to: user.email,
subject: "🎉 Welcome to Sprint Padawan! 🎉", subject: "🎉 Welcome to Sprint Padawan! 🎉",
//@ts-ignore //@ts-ignore: IDK why this doesn't work...
react: Welcome({ name: user.name }), react: Welcome({ name: user.name }),
}); });
await deleteFromCache(client, env.APP_ENV, `kv_userlist_admin`); await deleteFromCache(client, env.APP_ENV, `kv_userlist_admin`);