This commit is contained in:
Atridad Lahiji 2023-06-07 22:31:43 -06:00
parent e2e2253a6a
commit d3b014d836
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",
},
],
"@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 }) => (
<div>
<h1>Welcome, {name}!</h1>
<p>We're sorry to see you go!</p>
<p>{"We're sorry to see you go!"}</p>
<p>
Your data has been deleted, including all room history, user data, votes,
etc.

View file

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

View file

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