mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-11 13:44:01 +01:00
Updated error message.
This commit is contained in:
parent
4e9d661d82
commit
b77657faa6
@ -52,7 +52,7 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
|
||||
const { type, payload } = getJsonBody<CollectRequestBody>(req);
|
||||
|
||||
if (type !== 'event') {
|
||||
return badRequest(res);
|
||||
return badRequest(res, 'Wrong payload type.');
|
||||
}
|
||||
|
||||
const { url, referrer, name: eventName, data: eventData, title: pageTitle } = payload;
|
||||
|
Loading…
Reference in New Issue
Block a user