mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Merge dev.
This commit is contained in:
commit
b3f8bbe3fc
10 changed files with 58 additions and 70 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue