Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Return proper response.

Mike Cao64312d259d82
diff --git a/src/pages/api/send.ts b/src/pages/api/send.ts
index e2a450b72..cbcacae51 100644
--- a/src/pages/api/send.ts
+++ b/src/pages/api/send.ts
@@ -103,7 +103,7 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
const session = req.session;
if (!session?.id || !session?.websiteId) {
- return;
+ return ok(res, {});
}
const iat = Math.floor(new Date().getTime() / 1000);