Fixed funnel report saving invalid data.
Some checks are pending
Node.js CI / build (postgresql, 18.18) (push) Waiting to run

This commit is contained in:
Mike Cao 2025-09-22 22:03:26 -07:00
parent bf16ade184
commit 980e4e6b41
11 changed files with 34 additions and 25 deletions

View file

@ -2,8 +2,9 @@ import { z } from 'zod';
import * as send from '@/app/api/send/route';
import { parseRequest } from '@/lib/request';
import { json, serverError } from '@/lib/response';
import { anyObjectParam } from '@/lib/schema';
const schema = z.array(z.object({}).passthrough());
const schema = z.array(anyObjectParam);
export async function POST(request: Request) {
try {