mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-20 02:30:18 -05:00
fix: add hotfix for not storing 50% scroll and exit intent in db (#1326)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user