Merge dev.

This commit is contained in:
Mike Cao 2025-02-03 12:35:02 -08:00
commit b3f8bbe3fc
10 changed files with 58 additions and 70 deletions

View file

@ -1,6 +1,5 @@
import { z } from 'zod';
import { isbot } from 'isbot';
import { serializeError } from 'serialize-error';
import { createToken, parseToken, safeDecodeURI } from 'next-basics';
import clickhouse from 'lib/clickhouse';
import { parseRequest } from 'lib/request';
@ -111,7 +110,7 @@ export async function POST(request: Request) {
});
} catch (e: any) {
if (!e.message.toLowerCase().includes('unique constraint')) {
return serverError(serializeError(e));
return serverError(e);
}
}
}