fix: add hotfix for not storing 50% scroll and exit intent in db (#1326)

This commit is contained in:
Matti Nannt
2023-10-19 20:54:04 +02:00
committed by GitHub
parent 43e80d8185
commit f7f271b4b3

View File

@@ -25,6 +25,11 @@ export async function POST(req: Request): Promise<NextResponse> {
const { environmentId, sessionId, name, properties } = inputValidation.data;
// hotfix: don't create action for "Exit Intent (Desktop)", 50% Scroll events
if (["Exit Intent (Desktop)", "50% Scroll"].includes(name)) {
return responses.successResponse({}, true);
}
createAction({
environmentId,
sessionId,