chore(webapp): remove Vercel install Loops event (#3805)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
---
|
||||
area: webapp
|
||||
type: improvement
|
||||
---
|
||||
|
||||
Remove the Loops `vercel-integration` event fired from the Vercel install redirect route and drop the unused `vercelIntegrationStarted` method from the Loops client.
|
||||
@@ -4,7 +4,6 @@ import { z } from "zod";
|
||||
import { $replica } from "~/db.server";
|
||||
import { requireUser } from "~/services/session.server";
|
||||
import { logger } from "~/services/logger.server";
|
||||
import { loopsClient } from "~/services/loops.server";
|
||||
import { OrgIntegrationRepository } from "~/models/orgIntegration.server";
|
||||
import { generateVercelOAuthState } from "~/v3/vercel/vercelOAuthState.server";
|
||||
import { findProjectBySlug } from "~/models/project.server";
|
||||
@@ -66,15 +65,6 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
projectSlug: project_slug,
|
||||
});
|
||||
|
||||
// Send Loops.so event (fire-and-forget, don't block the redirect)
|
||||
loopsClient
|
||||
?.vercelIntegrationStarted({
|
||||
userId: user.id,
|
||||
email: user.email,
|
||||
name: user.name,
|
||||
})
|
||||
.catch(() => {});
|
||||
|
||||
// Generate Vercel install URL
|
||||
const vercelInstallUrl = OrgIntegrationRepository.vercelInstallUrl(stateToken);
|
||||
|
||||
|
||||
@@ -22,24 +22,6 @@ class LoopsClient {
|
||||
});
|
||||
}
|
||||
|
||||
async vercelIntegrationStarted({
|
||||
userId,
|
||||
email,
|
||||
name,
|
||||
}: {
|
||||
userId: string;
|
||||
email: string;
|
||||
name: string | null;
|
||||
}) {
|
||||
logger.info(`Loops send "vercel-integration" event`, { userId, email, name });
|
||||
return this.#sendEvent({
|
||||
email,
|
||||
userId,
|
||||
firstName: name?.split(" ").at(0),
|
||||
eventName: "vercel-integration",
|
||||
});
|
||||
}
|
||||
|
||||
async #sendEvent({
|
||||
email,
|
||||
userId,
|
||||
|
||||
Reference in New Issue
Block a user