Remove welcome email (need to add back in for cloud)

This commit is contained in:
Eric Allam
2023-06-22 22:57:09 +01:00
parent 40ffde33b6
commit 3c2f1709cc
@@ -1,7 +1,5 @@
import type { User } from "~/models/user.server";
import * as emailProvider from "~/services/email.server";
import { analytics } from "./analytics.server";
import { workerQueue } from "./worker.server";
export async function postAuthentication({
user,
@@ -12,9 +10,5 @@ export async function postAuthentication({
loginMethod: User["authenticationMethod"];
isNewUser: boolean;
}) {
if (isNewUser) {
await emailProvider.scheduleWelcomeEmail(user);
}
analytics.user.identify({ user, isNewUser });
}