Remove welcome email (need to add back in for cloud)
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user